vid-streamer icon indicating copy to clipboard operation
vid-streamer copied to clipboard

Error: EMFILE: too many open files happened

Open poppop0911 opened this issue 8 years ago • 0 comments

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

poppop0911 avatar Jan 20 '17 07:01 poppop0911