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

Error: EMFILE: too many open files happened #33

Open
poppop0911 opened this issue Jan 20, 2017 · 0 comments
Open

Error: EMFILE: too many open files happened #33

poppop0911 opened this issue Jan 20, 2017 · 0 comments

Comments

@poppop0911
Copy link

poppop0911 commented Jan 20, 2017

Error: EMFILE: too many open files happened

 return stream.pipe(res);

Maybe change to below code can resolve this problem
https://github.com/jshttp/on-finished

stream.pipe(res)
   onFinished(res, function (err) {
   destroy(stream)
});

take this load test for this case

./wrk -c 200 -d 30 -t 12 -v http://localhost:9000/0e16c56a28a4ea5aa7b6d40b09ce1b9b.mp4
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