Re: [Tutor] Closing SimpleXMLRPCServer properly

2005-08-31 Thread Danny Yoo
> class StoppableXMLRPCServer(SimpleXMLRPCServer.SimpleXMLRPCServer): > def serve_forever(self): > """to stop this server: register a function in the class > that uses it which sets server.stop to True.""" > self.stop = False > while not self.stop: > self.handle_request() > > Here's the code where

[Tutor] Closing SimpleXMLRPCServer properly

2005-08-31 Thread lawrence wang
I have a SimpleXMLRPCServer, which I've tweaked thusly: class StoppableXMLRPCServer(SimpleXMLRPCServer.SimpleXMLRPCServer):     def serve_forever(self):         """to stop this server: register a function in the class         that uses it which sets server.stop to True."""         self.stop = Fal