Martin Panter added the comment:

For stopping a single-threaded server from a request handler, perhaps see my 
patch for Issue 23430, which should allow calling sys.exit() or raising 
exceptions like SystemExit that do not inherit Exception.

It seems to me that shutdown() can only sensibly be used from a separate 
thread. If a forking server is used, that thread would have to be in the 
initial server listening process. See also Issue 12463 for some proposals for 
changing shutdown().

----------
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13749>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to