Skip to content

Commit

Permalink
Drop ESOCKETTIMEDOUT error
Browse files Browse the repository at this point in the history
  • Loading branch information
jstewmon authored and szmarczak committed Jul 26, 2018
1 parent da7f055 commit 6d654fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions readme.md
Expand Up @@ -217,10 +217,9 @@ Delays between retries counts with function `1000 * Math.pow(2, retry) + Math.ra
Option `retries` can be a `number`, but also accepts a `function` with `retry` and `error` arguments. Function must return delay in milliseconds (`0` return value cancels retry).

**Note:** It retries only on the specified methods, status codes, and on these network errors:
- `ETIMEDOUT`: Connection was not estabilished after a period of time.
- `ETIMEDOUT`: One of the [timeout](#timeout) limits was reached.
- `ECONNRESET`: Connection was forcibly closed by a peer.
- `EADDRINUSE`: Could not bind to any free port.
- `ESOCKETTIMEDOUT`: Connected, but received no response after a period of time.
- `ECONNREFUSED`: Connection was refused by the server.
- `EPIPE`: The remote side of the stream being written has been closed.

Expand Down
1 change: 0 additions & 1 deletion source/is-retry-on-network-error-allowed.js
Expand Up @@ -4,7 +4,6 @@ const WHITELIST = new Set([
'ETIMEDOUT',
'ECONNRESET',
'EADDRINUSE',
'ESOCKETTIMEDOUT',
'ECONNREFUSED',
'EPIPE'
]);
Expand Down

0 comments on commit 6d654fa

Please sign in to comment.