Skip to content

Commit 6d654fa

Browse files
jstewmonszmarczak
authored andcommittedJul 26, 2018
Drop ESOCKETTIMEDOUT error
1 parent da7f055 commit 6d654fa

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎readme.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,9 @@ Delays between retries counts with function `1000 * Math.pow(2, retry) + Math.ra
217217
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).
218218

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

‎source/is-retry-on-network-error-allowed.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const WHITELIST = new Set([
44
'ETIMEDOUT',
55
'ECONNRESET',
66
'EADDRINUSE',
7-
'ESOCKETTIMEDOUT',
87
'ECONNREFUSED',
98
'EPIPE'
109
]);

0 commit comments

Comments
 (0)
Please sign in to comment.