how to stop a server (TCPServer, for example)

Huayin Wang wang at
Tue Aug 21 17:20:30 CEST 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?


More information about the Python-list mailing list