SocketServer.TCPServer - graceful shutdown?

claudius at catlover.com claudius at catlover.com
Wed Feb 16 12:26:48 EST 2000


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...



More information about the Python-list mailing list