how to stop a server (TCPServer, for example)

Huayin Wang wang at rjka.com
Tue Aug 21 11:20:30 EDT 2001


when I called server.server_forever(), I get the server running, however, I
am having trouble
trying to stop it.  I know I can just kill the process, but then the port
won't be released.

How to make the server clean itself up and exit?
Do I need to implment an exit method for the server?

thanks





More information about the Python-list mailing list