[issue13749] socketserver can't stop
K Richard Pixley
report at bugs.python.org
Mon Jan 9 20:21:38 CET 2012
K Richard Pixley <rich at noir.com> added the comment:
It appears as though the problem is that shutdown() blocks waiting for the serve_forever loop to terminate, which won't happen as long as the process is blocked on shutdown.
I'd like to propose that the library be changed to eliminate the block. Shutdown() can set the flag and then return. This should allow the handler to return and the serve_forever loop to notice that it has been asked to cease operations.
Failing that, I think the library needs some other way to exit a socketserver.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13749>
_______________________________________
More information about the Python-bugs-list
mailing list