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

Implement shutdown handling to close WS clients cleanly #1102

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

devoxin
Copy link
Member

@devoxin devoxin commented Sep 5, 2024

Lavalink does not currently implement a shutdown hook to close connected websocket clients. As a result, clients will see their websocket connections improperly closed, typically with code 1006.

With this change, the server should now cleanly close connections with code 1001 ("GOING AWAY") when shutting down gracefully (i.e. upon receiving SIGINT).

@devoxin devoxin merged commit 634541e into dev Sep 6, 2024
2 checks passed
@devoxin devoxin deleted the fix/shutdown-handling branch September 6, 2024 22:56
@topi314 topi314 mentioned this pull request Sep 20, 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