-
In windows, I can use |
Beta Was this translation helpful? Give feedback.
Answered by
joseluisq
Feb 22, 2024
Replies: 2 comments 9 replies
-
Unfortunately, there is no exposed API to shout down the server gracefully on demand. |
Beta Was this translation helpful? Give feedback.
5 replies
-
@hanaTsuk1 there is a PR #319 ready to be tested. Please give it a try and let me know how it goes. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because that function was initially thought to just wait for Linux/Unix termination signals only. Later on, Windows support came along which does not have a termination signal concept and uses a channel to wait for an incoming ctrl+c. That's why both defer in implementation.
Anyway, I agree that adding support for a
cancel_recv
should be convenient for library users to shout down the server gracefully on demand.I could propose something in the coming weeks, so stay tuned.