SocketServer.TCPServer - graceful shutdown?

Gerrit Holl gerrit.holl at pobox.com
Wed Feb 16 15:49:13 EST 2000


claudius at catlover.com wrote on 950718408:
> All, I'm writing a web server app (a proxy that logs transactions for debugging
> purposes) and I've noticed that there's no graceful way to shut the server down
> from the handlers...I would think this is functionality that should be added
> to SocketServer.TCPServer.  Am I missing something (or is the code missing
> something?)
> 
> The only thing I could think of was sys.exit(0), but the exception is caught by
> the exception handler...

os._exit

regards,
Gerrit.

-- 
cat: /home/gerrit/.signature: No such file or directory




More information about the Python-list mailing list