[issue12463] Calling SocketServer.shutdown() when server_forever() was not called will hang

Antoine Pitrou report at bugs.python.org
Tue Jul 26 22:33:52 CEST 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

[...]
>     # note, thread may die in any time! regardles of isAlive()
>     # if thread dead before calling serve_forever(), will hang here without a workaround
>     rpc.shutdown() # from xmlrpcservr. 

Why do you say it "hangs"? It doesn't hang, it just waits for you to
call serve_forever(): it's not a bug, it's actually a feature.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12463>
_______________________________________


More information about the Python-bugs-list mailing list