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

Giampaolo Rodola' report at bugs.python.org
Mon Jul 25 20:37:01 CEST 2011


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

IMHO, both methods should raise an exception (RuntimeError maybe) in case the server is already started or stopped, at least in Python 3.3, while previous python versions should silently "pass".

It also makes sense to add a "running" property returning a bool, as suggested by Petri.

----------

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


More information about the Python-bugs-list mailing list