I'm trying to gracefully shutdown the server and it appears there is no way to do it. In server.py it looks like handle_accept() is so close but I hesitate to change it in my copy of the code. Any chance it could be supported in the formal code?
If someone (maybe you?) submits a reasonable patch (with tests), I'd be apt to merge it.
I'll test it out a bit more and submit it to you.
Closing due to age.
Hello, I'm willing to implement this feature. I just need some leads.
My intent based on what I understood is to have the server listen to SIGHUP, stop listening on the socket, finish to handle current channels and shutdown. Am I missing something ?