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

Better fire-and-forget WS closure #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lhchavez
Copy link
Contributor

Why

This introduces more problems than what it solves, since now if the application wants to exit, it may orphan this and cause a lot of logspam.

What changed

This change now closes the websocket synchronously to avoid leaking tasks upon exit.

Test plan

Maybe fewer warnings about cancelling pending tasks?

This introduces more problems than what it solves, since now if the
application wants to exit, it may orphan this and cause a lot of
logspam.

This change now closes the websocket in the background task manager so
that it is not orphaned upon process exit.
@lhchavez lhchavez changed the title Don't bother with fire-and-forget WS closure Better fire-and-forget WS closure Aug 14, 2024
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.

2 participants