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

Antoine Pitrou report at bugs.python.org
Tue Jul 26 23:34:28 CEST 2011


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

> When you join a thread which hasn't been started, you get an
> exception, not a deadlock.

But we don't have a deadlock here: another thread could perfectly well
call serve_forever() in the meantime and shutdown() should then return
after having stopped the event loop.

My point is that changing semantics may break existing software, without
there being a clear benefit in doing so.

----------

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


More information about the Python-bugs-list mailing list