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

Improve WriteControl timeout #13

Merged
merged 3 commits into from
Jun 13, 2024
Merged

Improve WriteControl timeout #13

merged 3 commits into from
Jun 13, 2024

Conversation

tebuka
Copy link
Collaborator

@tebuka tebuka commented Jun 13, 2024

  • Reduce use of timer.
  • Do not timeout when WriteControl deadline is zero.

Commits picked from gorilla/websocket/pull/879 and gorilla/websocket/pull/898.

rfyiamcool and others added 3 commits June 12, 2024 20:42
Signed-off-by: rfyiamcool <rfyiamcool@163.com>
Signed-off-by: rfyiamcool <rfyiamcool@163.com>
A zero value for the Conn.WriteControl deadline specifies no timeout,
but the feature was implemented as a very long timeout (1000 hours).
This PR updates the code to use no timeout when the deadline is zero.

See the discussion in #895 for more details.
@tebuka tebuka merged commit dbc14fa into main Jun 13, 2024
@tebuka tebuka deleted the pr1 branch June 13, 2024 03:48
@tebuka tebuka mentioned this pull request Jun 13, 2024
28 tasks
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