-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: handle disconnections better (#80)
* add TRACE log level for noisy logs * cleanly disconnect when checking for protocol version so server logs are more readable * gracefully handle disconnections 1. close all the channels upon a disconnection 2. don't try to write to them if we've initiated a disconnection 3. check for ErrCloseSent from gorilla/websocket * clean up client_test, make goroutine test even more parallel * use -count 1 --------- Co-authored-by: Andrey Kaipov <[email protected]>
- Loading branch information
1 parent
de30064
commit c7baaaf
Showing
5 changed files
with
124 additions
and
51 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
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
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