From 9f82d17308dd6e57ace64b56884ed6add11d180f Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Sat, 16 Jan 2016 16:17:22 +0500 Subject: [PATCH] :memo: add note about non-retrieable errors --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 4c03fa297..eb4c5e0d8 100644 --- a/readme.md +++ b/readme.md @@ -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).