Skip to content
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

Access files in batch to prevent EMFILE error #1

Closed
cyjake opened this issue Jan 10, 2014 · 0 comments
Closed

Access files in batch to prevent EMFILE error #1

cyjake opened this issue Jan 10, 2014 · 0 comments

Comments

@cyjake
Copy link
Owner

cyjake commented Jan 10, 2014

Node.js has limits on opening file descriptors, see nodejs/node-v0.x-archive#5401

I've got two options, 1) use graceful-fs as a drop in replacement of built-in fs module; 2) access files in batch, keep the total opened file descriptors below the red line.

Guess I'll give the second option a try.

@cyjake cyjake closed this as completed in 88974f8 Jan 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant