-
Notifications
You must be signed in to change notification settings - Fork 223
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
Shutdown not working? #308
Comments
Even with the example from here: https://github.com/housleyjk/ws-rs/blob/master/examples/external_shutdown.rs, I can not get it to work with the following code:
I am calling shutdown twice and the listener is never closed |
You're starting the server twice ( Perhaps it does shut down once, but gets started again? The second one never shuts down, because shutdown happens when it receives a message. Calling shutdown twice doesn't help because it's twice on the same server. |
This is a reproduction project: https://github.com/Jasperav/WebsocketRust, this is main.rs:
Why isn't the shutdown method working? The program crashes because the connection isn't closed.
The text was updated successfully, but these errors were encountered: