treygriffith / filequeue Goto Github PK
View Code? Open in Web Editor NEWDrop-in Replacement for `fs` that avoids `Error: EMFILE, too many open files`
License: MIT License
Drop-in Replacement for `fs` that avoids `Error: EMFILE, too many open files`
License: MIT License
hi
having the issue you've come to address:
Error: EMFILE, open
I'm using node as a stream server via createReadStream to read files.
serving the same file more then 750 times causes the error,
even though the same file is opened, not to mention when i open
another file, error happens even after 100 files are served.
found your solution in the stack overflow's thread:
http://stackoverflow.com/questions/8965606/node-and-error-emfile-too-many-open-files
thanks
Liam
just ran into the EMFILE issue, but with child processes. A drop in solution for that would be nice, too! (not just with the fs module).
Hi,
Is there a TypeScript type definition for this module?
Thanks
There was a "EMFILE: too many open files..." error with Jade and Jade-brunch plugin, so I changed fs
to filequeue
. It works for me, but as the author says, there seems something wrong with the usage
Node 0.10.0 introduced changes to some of the current methods for Filequeue, so an upgrade is slightly more complicated than just a change to package.json, but we should have a functioning version that works with the latest stable Node release.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.