From dbddd678bc2d52734efb5fc6cc979107ff330af5 Mon Sep 17 00:00:00 2001 From: Evgenii Galkin Date: Thu, 18 Feb 2016 17:17:15 +0500 Subject: [PATCH] Clarify readme section about retries --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 1a0b5ca..f0d5bff 100644 --- a/readme.md +++ b/readme.md @@ -120,10 +120,10 @@ Default: `5` Number of request retries when network errors happens. Delays between retries counts with function `1000 * 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). +**Note:** if `retries` is `number`, `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). + #### Streams