Skip to content

Commit

Permalink
馃摑 add note about non-retrieable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Jan 16, 2016
1 parent 345362e commit 9f82d17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme.md
Expand Up @@ -120,6 +120,8 @@ Default: `5`

Number of request retries when network errors happens. Delays between retries counts with function `Math.pow(2, retry) + Math.random() * 100`, where `retry` is attempt number (starts from 0).

**Note:** `ENOTFOUND` and `ENETUNREACH` error will not be retried (see full list in [`is-retry-allowed`](https://github.com/floatdrop/is-retry-allowed/blob/master/index.js#L12) module).

Option accepts `function` with `retry` and `error` arguments. Function must return delay in milliseconds (`0` return value cancels retry).


Expand Down

0 comments on commit 9f82d17

Please sign in to comment.