Skip to content

Avoid synchronous fs calls #107

@maksis

Description

@maksis

If the disk is under unusually heavy load (or the response times are long for other reason), I'd assume that the current synchronous fs calls in is.js can cause the process event loop to be blocked for an unnecessarily long time when receiving a burst of change notifications or performing the initial directory tree scan (looks like is.directory is even called twice for each directory).

I suspect that this is currently causing timeouts in my project as the Node process isn't able to process user/socket ping requests for a few users that have their disks under heavy load (e.g. airdcpp-web/airdcpp-share-monitor#2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions