Skip to content

Commit 13d5369

Browse files
committed
Merge pull request redis#405 from tomaszdurka/issue-405
Add docu for options: max_attempts, connect_timeout
2 parents d03d747 + c456315 commit 13d5369

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,10 @@ with an error, or an error will be thrown if no callback is specified.
205205
* `retry_max_delay`: defaults to `null`. By default every time the client tries to connect and fails time before
206206
reconnection (delay) almost doubles. This delay normally grows infinitely, but setting `retry_max_delay` limits delay
207207
to maximum value, provided in miliseconds.
208+
* `connect_timeout` defaults to `false`. By default client will try reconnecting until connected. Setting `connect_timeout`
209+
limits total time for client to reconnect. Value is provided in miliseconds and is counted once the disconnect occured.
210+
* `max_attempts` defaults to `null`. By default client will try reconnecting until connected. Setting `max_attempts`
211+
limits total amount of reconnects.
208212

209213
```js
210214
var redis = require("redis"),

0 commit comments

Comments
 (0)