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

Add SocketAuthority.close() #2454

Merged
merged 2 commits into from
Dec 28, 2023
Merged

Conversation

mikiher
Copy link
Contributor

@mikiher mikiher commented Dec 27, 2023

This is a small fix for my previous PR #2445.

If there are connected SocketIO sockets, then calling server.close() on SIGINT will hang and not resolve.

Instead, we need to call SocketAuthority.io.close(), which will disconnect all connected sockets, and also close the underlying http server (see documentation here). Sorry for missing this initially.

@mikiher mikiher marked this pull request as ready for review December 27, 2023 13:47
@advplyr
Copy link
Owner

advplyr commented Dec 28, 2023

Thanks!

@advplyr advplyr merged commit fbbcedd into advplyr:master Dec 28, 2023
1 check passed
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