Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-v1.7] rpcserver: Update websocket ping timeout handling. #2866

Merged

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jan 8, 2022

This is a backport of #2865 to the 1.7 release branch.

@davecgh davecgh added this to the 1.7.0 milestone Jan 8, 2022
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.
@davecgh davecgh force-pushed the rel17_rpcserver_ping_handler_timeout branch from 607ca9e to 14958dd Compare January 8, 2022 05:12
@davecgh davecgh merged commit 14958dd into decred:release-v1.7 Jan 10, 2022
@davecgh davecgh deleted the rel17_rpcserver_ping_handler_timeout branch January 10, 2022 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants