-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-v1.7] rpcserver: Update websocket ping timeout handling.
Currently, timeouts when responding to a websocket ping control message with a pong message cause the websocket client to be disconnected, but these types of failures are nearly always temporary network errors due to things such as congestion and thus should not result in disconnection. In order to make that the case, this modifies the websocket ping handler to ignore timeout network errors when attempting to respond with a pong and also takes this opportunity to increase the timeout to 5 seconds from 1 second to support multi-continent communication.
- Loading branch information
Showing
2 changed files
with
14 additions
and
7 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