def serve_all(self):
        """Serves all requests and replies for as long as the connection is 
        alive."""
        try:
            try:
                while True:
                    self.serve(0.1)
            except (socket.error, select_error, __HOLE__):
                if not self.closed:
                    raise
            except EOFError:
                pass
            except Exception,e:
                print "Exception during serve_all:"
                print e
        finally:
            self.close()
dataset/ETHPy150Open sccn/SNAP/src/rpyc/core/protocol.py/Connection.serve_all