-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handle client connectivity state. (#510)
* Better handle client connectivity state. Motivation: Pull #506 highlighted some issues with client reconnectivity, namely a race between an automatic reconnection and the client closing the connection. In this case the delegate would report changes of state after the terminal shutdown state. Modifications: - State changes are now thread safe. - Record when a user initiates shutdown, ignore state changes beyond this point and close any channels created after this point. Result: More correct channel reconnectivity. * Fix a couple of code smells and a typo
- Loading branch information
Showing
2 changed files
with
199 additions
and
135 deletions.
There are no files selected for viewing
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.