Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure all goroutines are finished before reconnect
In the case where a server dropped the connection to the client the keepalive routine continued to run, attempted to send a ping on a net.Conn that had gone away. This change adds an internalConnLost() function to the Client that ensures that all the client goroutines have finished before starting the reconnect Bug: 463046
- Loading branch information
Al S-M
committed
Mar 26, 2015
1 parent
b0a1972
commit ccf6fcf
Showing
3 changed files
with
19 additions
and
14 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