-
Notifications
You must be signed in to change notification settings - Fork 30
Is gracefull shutdown possible? #15
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
Comments
Right now (with one small commit that I'm adding) it's possible to implement a graceful shutdown on top of the current
The last step would allow for any new incoming clients to finish establishing and then be completely closed, and I think there are no weird race conditions there. This requires a new method |
I would accept a PR to make this a method on |
Thanks! I will give implementing this a shot at some point, when I get back to the project that needs it. |
Is there a way to gracefully shut down the
rtc_server.recv()
loop without waiting for the next packet?EDIT: I'm currently using
futures::future::Abortable
to kill it, seems like a better way would be optimal but this is working for now.The text was updated successfully, but these errors were encountered: