Author martin.panter
Recipients giampaolo.rodola, martin.panter, r.david.murray, teamnoir, weirdink13
Date 2016-02-11.03:32:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1455161540.13.0.284409873577.issue13749@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2016-02-11 03:32:20martin.pantersetrecipients: + martin.panter, giampaolo.rodola, r.david.murray, teamnoir, weirdink13
2016-02-11 03:32:20martin.pantersetmessageid: <1455161540.13.0.284409873577.issue13749@psf.upfronthosting.co.za>
2016-02-11 03:32:20martin.panterlinkissue13749 messages
2016-02-11 03:32:19martin.pantercreate