> 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
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