Skip to content

Implement shutdown handling to close WS clients cleanly#1102

Merged
devoxin merged 1 commit into
devfrom
fix/shutdown-handling
Sep 6, 2024
Merged

Implement shutdown handling to close WS clients cleanly#1102
devoxin merged 1 commit into
devfrom
fix/shutdown-handling

Conversation

@devoxin
Copy link
Copy Markdown
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
@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