Message260071
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(). |
|
Date |
User |
Action |
Args |
2016-02-11 03:32:20 | martin.panter | set | recipients:
+ martin.panter, giampaolo.rodola, r.david.murray, teamnoir, weirdink13 |
2016-02-11 03:32:20 | martin.panter | set | messageid: <1455161540.13.0.284409873577.issue13749@psf.upfronthosting.co.za> |
2016-02-11 03:32:20 | martin.panter | link | issue13749 messages |
2016-02-11 03:32:19 | martin.panter | create | |
|