-
Notifications
You must be signed in to change notification settings - Fork 773
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
EMFILE, too many open files on Mac OS with JSON API #275
Comments
@jareguo good point. Would you submit a PR in |
Sorry I don't have much time to submit a PR (and test it) lately, I just bypassed all json API in my project. |
Seeing the same on Windows when writing JSON files in a loop (but waiting for the Perhaps the callback is firing before the file is truly closed, allowing a variable number of handles to be left open when in a loop situation? |
I'm getting this error when using |
I'm working on fixing |
Done jprichardson/node-klaw#10. When that is merged and |
readJson relies on
jsonfile
module, which just uses the original node fs module. It will cause the EMFILE error on Mac, so it's better to usegraceful-fs
everywhere to avoid the EMFILE problem.The text was updated successfully, but these errors were encountered: