How to programmatically exit from wsgi's serve_forever() loop
python at bdurham.com
python at bdurham.com
Mon Dec 27 20:05:47 EST 2010
Is it possible to programmatically exit from the wsgiref's
serve_forever() loop?
I tried the following, all without success:
httpd.server_close()
httpd.shutdown()
sys.exit(1)
os._exit(1) (shouldn't this always abort an application?)
raise KeyboardInterupt (Ctrl+Break from console works)
Thanks,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101227/ddc33037/attachment-0001.html>
More information about the Python-list
mailing list