Skip to content

Conversation

kylecarbs
Copy link
Member

In an HTTP handler where the context is used for cleanup, a goroutine would leak temporarily. By using the write context, it should block the WebSocket from sending the close frame at all if cancelled.

In an HTTP handler where the context is used for cleanup, a goroutine would leak temporarily. By using the write context, it should block the WebSocket from sending the close frame at all if cancelled.
@kylecarbs kylecarbs requested a review from nhooyr as a code owner February 20, 2022 19:48
kylecarbs added a commit to coder/coder that referenced this pull request Feb 20, 2022
There's an upstream PR open to fix the issue. This should patch it
to make our CI work! For details, see: coder/websocket#329
@kylecarbs
Copy link
Member Author

I needed to defer Close() in my HTTP handler, and this issue no longer exists!

@kylecarbs kylecarbs closed this Feb 20, 2022
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy