how to stop a server (TCPServer, for example)

Skip Montanaro skip at pobox.com
Tue Aug 21 20:09:49 CEST 2001


    Huayin> do you think it is reasonable to patch the SocketServer.py so
    Huayin> that it is easier to write request handler to stop the server?

I'm not sure it's worth the effort.  The system is designed so that you
subclass the relevant server class in your code and override serve_forever.
If you feel strongly about it, visit the Python project on SourceForge:

    http://sourceforge.net/projects/python/

and submit a patch...

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list