how do I stop SocketServer()?

2008-08-27 Thread Alexandru Mosoi
supposing that I have a server (an instance of SocketServer()) that waits for a connection (ie is blocked in accept()) and in another thread i want to stop the server, how do I do that? -- http://mail.python.org/mailman/listinfo/python-list

Re: how do I stop SocketServer()?

2008-08-27 Thread Diez B. Roggisch
Alexandru Mosoi wrote: supposing that I have a server (an instance of SocketServer()) that waits for a connection (ie is blocked in accept()) and in another thread i want to stop the server, how do I do that? By setting a timeout on the socket using socket.settimeout, and then periodically

Re: how do I stop SocketServer()?

2008-08-27 Thread Uberman
On Wed, 27 Aug 2008 18:44:46 +0200, Diez B. Roggisch [EMAIL PROTECTED] wrote: Alexandru Mosoi wrote: supposing that I have a server (an instance of SocketServer()) that waits for a connection (ie is blocked in accept()) and in another thread i want to stop the server, how do I do that? By