You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,9 +200,9 @@ once the connection has been established. Setting `enable_offline_queue` to
200
200
with an error, or an error will be emitted if no callback is specified.
201
201
*`retry_max_delay`: *null*; By default every time the client tries to connect and fails the reconnection delay almost doubles.
202
202
This delay normally grows infinitely, but setting `retry_max_delay` limits it to the maximum value, provided in milliseconds.
203
-
*`connect_timeout`: *86400000*; Setting `connect_timeout` limits total time for client to reconnect.
204
-
The value is provided in milliseconds and is counted once the disconnect occurred. The last retry is going to happen exactly at the timeout time.
205
-
That way the default is to try reconnecting until 24h passed.
203
+
*`connect_timeout`: *3600000*; Setting `connect_timeout` limits total time for client to connect and reconnect.
204
+
The value is provided in milliseconds and is counted from the moment on a new client is created / a connection is lost. The last retry is going to happen exactly at the timeout time.
205
+
Default is to try connecting until the default system socket timeout has been exceeded and to try reconnecting until 1h passed.
206
206
*`max_attempts`: *0*; By default client will try reconnecting until connected. Setting `max_attempts`
207
207
limits total amount of connection tries. Setting this to 1 will prevent any reconnect tries.
208
208
*`auth_pass`: *null*; If set, client will run redis auth command on connect.
Copy file name to clipboardExpand all lines: changelog.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,14 @@ Features
13
13
- Refactored manual backpressure control ([@BridgeAR](https://github.com/BridgeAR))
14
14
- Removed the high water mark and low water mark. Such a mechanism should be implemented by a user instead
15
15
- The `drain` event is from now on only emitted if the stream really had to buffer
16
+
- Reduced the default connect_timeout to be one hour instead of 24h ([@BridgeAR](https://github.com/BridgeAR))
16
17
17
18
Bugfixes
18
19
19
20
- Fixed a js parser error that could result in a timeout ([@BridgeAR](https://github.com/BridgeAR))
20
21
- Fixed .multi / .batch used with Node.js 0.10.x not working properly after a reconnect ([@BridgeAR](https://github.com/BridgeAR))
21
22
- Fixed fired but not yet returned commands not being rejected after a connection loss ([@BridgeAR](https://github.com/BridgeAR))
23
+
- Fixed connect_timeout not respected if no connection has ever been established ([@gagle](https://github.com/gagle) & [@benjie](https://github.com/benjie))
0 commit comments