SocketServer - how to close the server gracefully?

Mr Seb mrseb at mrseb.com
Mon Jul 12 02:11:48 EDT 2004


Hi.
 
I've been playing with ServerSocket.TCPServer, and I can manage new
connections fine, and broadcast data to them all, by managing all the
connections in a list.
 
But I seem to have issues closing the individual connections, and then when
I have no connections left, the server dies, and python then decides to take
up 100% cpu (iterating the serve_forever() handle() basehandler. )
 
Does anyone have any experience with ServerSocket? I can't seem to find any
*examples* of its use on the web. Help appreciated :-)
 
-S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040712/d33cbb28/attachment.html>


More information about the Python-list mailing list