| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f9d8494 commit 4fffb42
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3225,7 +3225,8 @@ changes: | |||
| 3225 | 3225 | description: The `maxBusyTries` option is renamed to `maxRetries`, and its | |
| 3226 | 3226 | default is 0. The `emfileWait` option has been removed, and | |
| 3227 | 3227 | `EMFILE` errors use the same retry logic as other errors. The | |
| 3228 | - `retryDelay` option is now supported. | ||
| 3228 | + `retryDelay` option is now supported. `ENFILE` errors are now | ||
| 3229 | + retried. | ||
| 3229 | 3230 | - version: v12.10.0 | |
| 3230 | 3231 | pr-url: https://github.com/nodejs/node/pull/29168 | |
| 3231 | 3232 | description: The `recursive`, `maxBusyTries`, and `emfileWait` options are | |
@@ -3248,11 +3249,11 @@ changes: | |||
| 3248 | 3249 | ||
| 3249 | 3250 | * `path` {string|Buffer|URL} | |
| 3250 | 3251 | * `options` {Object} | |
| 3251 | - * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENOTEMPTY`, or `EPERM` | ||
| 3252 | - error is encountered, Node.js will retry the operation with a linear backoff | ||
| 3253 | - wait of `retryDelay` ms longer on each try. This option represents the number | ||
| 3254 | - of retries. This option is ignored if the `recursive` option is not `true`. | ||
| 3255 | - **Default:** `0`. | ||
| 3252 | + * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or | ||
| 3253 | + `EPERM` error is encountered, Node.js will retry the operation with a linear | ||
| 3254 | + backoff wait of `retryDelay` ms longer on each try. This option represents the | ||
| 3255 | + number of retries. This option is ignored if the `recursive` option is not | ||
| 3256 | + `true`. **Default:** `0`. | ||
| 3256 | 3257 | * `recursive` {boolean} If `true`, perform a recursive directory removal. In | |
| 3257 | 3258 | recursive mode, errors are not reported if `path` does not exist, and | |
| 3258 | 3259 | operations are retried on failure. **Default:** `false`. | |
@@ -3277,7 +3278,8 @@ changes: | |||
| 3277 | 3278 | description: The `maxBusyTries` option is renamed to `maxRetries`, and its | |
| 3278 | 3279 | default is 0. The `emfileWait` option has been removed, and | |
| 3279 | 3280 | `EMFILE` errors use the same retry logic as other errors. The | |
| 3280 | - `retryDelay` option is now supported. | ||
| 3281 | + `retryDelay` option is now supported. `ENFILE` errors are now | ||
| 3282 | + retried. | ||
| 3281 | 3283 | - version: v12.10.0 | |
| 3282 | 3284 | pr-url: https://github.com/nodejs/node/pull/29168 | |
| 3283 | 3285 | description: The `recursive`, `maxBusyTries`, and `emfileWait` options are | |
@@ -3292,8 +3294,9 @@ changes: | |||
| 3292 | 3294 | ||
| 3293 | 3295 | * `path` {string|Buffer|URL} | |
| 3294 | 3296 | * `options` {Object} | |
| 3295 | - * `maxRetries` {integer} If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error is | ||
| 3296 | - encountered, Node.js will retry the operation. This option represents the | ||
| 3297 | + * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or | ||
| 3298 | + `EPERM` error is encountered, Node.js will retry the operation with a linear | ||
| 3299 | + backoff wait of `retryDelay` ms longer on each try. This option represents the | ||
| 3297 | 3300 | number of retries. This option is ignored if the `recursive` option is not | |
| 3298 | 3301 | `true`. **Default:** `0`. | |
| 3299 | 3302 | * `recursive` {boolean} If `true`, perform a recursive directory removal. In | |
@@ -5014,7 +5017,8 @@ changes: | |||
| 5014 | 5017 | description: The `maxBusyTries` option is renamed to `maxRetries`, and its | |
| 5015 | 5018 | default is 0. The `emfileWait` option has been removed, and | |
| 5016 | 5019 | `EMFILE` errors use the same retry logic as other errors. The | |
| 5017 | - `retryDelay` option is now supported. | ||
| 5020 | + `retryDelay` option is now supported. `ENFILE` errors are now | ||
| 5021 | + retried. | ||
| 5018 | 5022 | - version: v12.10.0 | |
| 5019 | 5023 | pr-url: https://github.com/nodejs/node/pull/29168 | |
| 5020 | 5024 | description: The `recursive`, `maxBusyTries`, and `emfileWait` options are | |
@@ -5025,11 +5029,11 @@ changes: | |||
| 5025 | 5029 | ||
| 5026 | 5030 | * `path` {string|Buffer|URL} | |
| 5027 | 5031 | * `options` {Object} | |
| 5028 | - * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENOTEMPTY`, or `EPERM` | ||
| 5029 | - error is encountered, Node.js will retry the operation with a linear backoff | ||
| 5030 | - wait of `retryDelay` ms longer on each try. This option represents the number | ||
| 5031 | - of retries. This option is ignored if the `recursive` option is not `true`. | ||
| 5032 | - **Default:** `0`. | ||
| 5032 | + * `maxRetries` {integer} If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or | ||
| 5033 | + `EPERM` error is encountered, Node.js will retry the operation with a linear | ||
| 5034 | + backoff wait of `retryDelay` ms longer on each try. This option represents the | ||
| 5035 | + number of retries. This option is ignored if the `recursive` option is not | ||
| 5036 | + `true`. **Default:** `0`. | ||
| 5033 | 5037 | * `recursive` {boolean} If `true`, perform a recursive directory removal. In | |
| 5034 | 5038 | recursive mode, errors are not reported if `path` does not exist, and | |
| 5035 | 5039 | operations are retried on failure. **Default:** `false`. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,8 @@ const { | |||
| 22 | 22 | const { join } = require('path'); | |
| 23 | 23 | const { setTimeout } = require('timers'); | |
| 24 | 24 | const notEmptyErrorCodes = new Set(['ENOTEMPTY', 'EEXIST', 'EPERM']); | |
| 25 | - const retryErrorCodes = new Set(['EBUSY', 'EMFILE', 'ENOTEMPTY', 'EPERM']); | ||
| 25 | + const retryErrorCodes = new Set( | ||
| 26 | + ['EBUSY', 'EMFILE', 'ENFILE', 'ENOTEMPTY', 'EPERM']); | ||
| 26 | 27 | const isWindows = process.platform === 'win32'; | |
| 27 | 28 | const epermHandler = isWindows ? fixWinEPERM : _rmdir; | |
| 28 | 29 | const epermHandlerSync = isWindows ? fixWinEPERMSync : _rmdirSync; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments