-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent EMFILE #10432
Prevent EMFILE #10432
Comments
I feel one can always make a wrapper over the One way to say |
This is not so different from a file open, it uses a fd, and I can't see why you would want to open 1000 watches on the same file. |
Seems the consensus is that node core isn't the place to fix this. I'll go ahead and close the issue. |
Try to run (with empty file.txt in working dir):
Produces instantly: Uncaught Error: watch file.txt EMFILE
It make sense to dedupe multiple watchers on same file to prevent 'too many files open'?
The text was updated successfully, but these errors were encountered: