-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add reconnect settings to async builder The builder can now be configured with the following properties to control automatic reconnections on network errors or server disconnects: - reconnect - reconnect_on_disconnect - reconnect_delay (min and max) - max_reconnect_attempts * Introduce `DisconnectReason` enum The enum replaces the need for multiple `AtomicBool`'s to maintain the disconnection reason. This makes the code easier to read and more ergonomic to maintain the state. * Serialize the reconnect tests Tests that rely on the reconnect socket server cannot run in parallel because they ask the server to disconnect and restart as part of the test. This can cause other tests running in parallel to fail in mysterious ways. By using the `serial_test` module and applying it selectively to the affected tests, we can ensure that they are never executed concurrently.
- Loading branch information
1 parent
4324d7b
commit 5ae3d4d
Showing
5 changed files
with
372 additions
and
79 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.