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

Add read timeouts to server sockets #4805

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented May 28, 2024

Identify the Bug or Feature request

Fixes #774

Description of the Change

On the server side, sockets now have a 1 minute read timeout. This gives plenty of time for heartbeats to come in and "reset" the timeout, while not allowing the server to hold onto stale connections forever.

Possible Drawbacks

I guess if the network is really haywire this could lead to forced disconnects.

Documentation Notes

Connections to servers automatically time out after one minute.

Release Notes

  • Fixed a bug where servers would hang onto connections indefinitely if the client goes away without closing the connection.

This change is Reviewable

@kwvanderlinde kwvanderlinde self-assigned this May 28, 2024
@kwvanderlinde kwvanderlinde linked an issue May 28, 2024 that may be closed by this pull request
@cwisniew cwisniew added this pull request to the merge queue May 30, 2024
Merged via the queue into RPTools:develop with commit e9a5a85 May 30, 2024
5 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/774-socket-read-timeout branch June 28, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

Stale connections on server when client loses connection
2 participants