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

Petri Lehtinen report at bugs.python.org
Mon Jul 25 20:17:39 CEST 2011


Petri Lehtinen <petri at digip.org> added the comment:

OK, so this is intentional. But why? Why does it *have to* block on every call? It would be more reasonable to make in not block if serve_forever() is not running and for example add a function to check whether serve_forever() is running or not.

If for some reason it has to fail when serve_forever() is not running, a deadlock is still not good. An exception would be better.

----------

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


More information about the Python-bugs-list mailing list