graceful-fs
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -129,4 +129,11 @@ // Monkey-patching the fs module. | ||
Req.prototype.done = function (er, result) { | ||
// if an error, and the code is EMFILE, then get in the queue | ||
if (er && er.code === "EMFILE") { | ||
var tryAgain = false | ||
if (er) { | ||
var code = er.code | ||
var tryAgain = code === "EMFILE" | ||
if (process.platform === "win32") | ||
tryAgain = tryAgain || code === "OK" | ||
} | ||
if (tryAgain) { | ||
this.failures ++ | ||
@@ -133,0 +140,0 @@ enqueue(this) |
@@ -5,3 +5,3 @@ { | ||
"description": "A drop-in replacement for fs, making various improvements.", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -14,6 +14,5 @@ # graceful-fs | ||
* keeps track of how many file descriptors are open, and by default | ||
limits this to 1024. Any further requests to open a file are put in a | ||
queue until new slots become available. If 1024 turns out to be too | ||
much, it decreases the limit further. | ||
* Queues up `open` and `readdir` calls, and retries them once | ||
something closes if there is an EMFILE error from too many file | ||
descriptors. | ||
* fixes `lchmod` for Node versions prior to 0.6.2. | ||
@@ -29,7 +28,1 @@ * implements `fs.lutimes` if possible. Otherwise it becomes a noop. | ||
the directory. | ||
## Configuration | ||
The maximum number of open file descriptors that graceful-fs manages may | ||
be adjusted by setting `fs.MAX_OPEN` to a different number. The default | ||
is 1024. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
360
0
12869
27