-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
Try to run (with empty file.txt in working dir):
for(let i = 0; i < 10e3; i++) { require('fs').watch('file.txt') }
Produces instantly: Uncaught Error: watch file.txt EMFILE
It make sense to dedupe multiple watchers on same file to prevent 'too many files open'?
- Version: v7.2.1
- Platform: macOS
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.