def serve_forever_stoppable(self):
self.stop_request = False<EOL>self.stopped = False<EOL>while not self.stop_request:<EOL><INDENT>self.handle_request()<EOL><DEDENT>self.stopped = True<EOL>
Handle one request at a time until stop_serve_forever().

        http://code.activestate.com/recipes/336012/