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
* Implement exponential backoff for retries
* do not use exp backoff if MaxReconnectWait is set to 0
* solve the deadlock
* add test for MaxReconnectWait and exponential backoff
* update documentation with default values
---------
Co-authored-by: sonali.bhavsar <sonali.bhavsar@espressif.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,6 +264,7 @@ by the server. It does it using `ConnectionClosedHandler`.
264
264
Following options are supported:
265
265
266
266
*`ReconnectWait` sets the time to wait after first re-connect attempt
267
+
*`MaxReconnectWait` specifies the maximum duration to wait between reconnection attempts, serving as the upper bound for exponential backoff; if set to zero, there's no exponential backoff and ReconnectWait is used for each retry.
267
268
*`ErrorHandler` is called in a goroutine with the errors that can't be returned to the caller (from other goroutines)
268
269
*`MinConnections` is the number of connections required to be established when we connect the pool
269
270
*`ConnectionsFilter` is a function to filter connections in the pool for `Get`, `IsDegraded` or `IsUp` methods
0 commit comments