Re: socketserver question

2012-01-08 Thread Bryan
K Richard Pixley wrote: [...] > The doc says server.shutdown(), but if I call self.server.shutdown() > from within handler.handle(), I seem to get a deadlock, which is exactly > what I'd expect in a single threaded system with no way to "signal" the > server.server_forever() loop which is several f

socketserver question

2012-01-05 Thread K Richard Pixley
Once I've instantiated my server class, along with a handler class, called server.serve_forever(), handler.handle() has been called, I've done my work, and I'm ready to shut the whole thing down... How do I do that? The doc says server.shutdown(), but if I call self.server.shutdown() from wit