You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we found the problem in nratan's project and solved it, it will be a problem for others and should be fixed within haiku to prevent head scratching and frustration.
He was looping over about 100 posts that all had exerts with image tags with a src attribute that didn't exist yet, when the browser tried to load these each request went to the haiku server which attempted to reload itself for each image at about the same time causing the "Error: EMFILE, Too many open files" error to occur.
Two things should happen:
the main haiku object shouldn't reload itself on every request, each piece of content should be aware of changes to it's file and update itself accordingly using fs.watchFilehttp://nodejs.org/docs/v0.4.12/api/all.html#fs.watchFile this will greatly reduce the amount of file reads and work that needs to be done to provide the updated content
Original Title: Too many files open
When there are many files opening because of the rendering of a webpage it throws up this error :
if (err) throw err;
^
Error: EMFILE, Too many open files
The text was updated successfully, but these errors were encountered: