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
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ async with stompman.Client(
37
37
connection_confirmation_timeout=2,
38
38
disconnect_confirmation_timeout=2,
39
39
read_timeout=2,
40
+
write_retry_attempts=3,
40
41
) as client:
41
42
...
42
43
```
@@ -107,7 +108,7 @@ stompman takes care of cleaning up resources automatically. When you leave the c
107
108
108
109
- If multiple servers were provided, stompman will attempt to connect to each one simultaneously and will use the first that succeeds. If all servers fail to connect, an `stompman.FailedAllConnectAttemptsError` will be raised. In normal situation it doesn't need to be handled: tune retry and timeout parameters in `stompman.Client()` to your needs.
109
110
110
-
- When connection is lost, stompman will handle it automatically. `stompman.FailedAllConnectAttemptsError` will be raised if all connection attempts fail. `stompman.RepeatedConnectionLostError` or `stompman.ConnectionLostDuringOperationError`will be raised if connection succeeds but operation (like sending a frame) leads to connection getting lost.
111
+
- When connection is lost, stompman will attempt to handle it automatically. `stompman.FailedAllConnectAttemptsError` will be raised if all connection attempts fail. `stompman.FailedAllWriteAttemptsError`will be raised if connection succeeds but sending a frame or heartbeat lead to losing connection.
0 commit comments