node-graceful-fs: Win 10 pro still getting `EMFILE: too many open files` error.
I’ve added this at the root of my app
var realFs = require('fs')
var gracefulFs = require('graceful-fs')
gracefulFs.gracefulify(realFs)
But I’m still getting EMFILE: too many open files
error.
Any ideas what else can I do? Win 10 pro
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 24
As I investigated error is thrown by
fs.openSync
which is not patched bygraceful-fs
, and there seems no way it can work without patching as by looking at the source code offs.openSync
the error comes from native binding.So it looks as clear bug on
graceful-fs
side. @isaacs ?