code: def start(self):
          '''
          Serving loop
          '''
          print('Waiting for a client to connect to url http://%s:%d/' % (self.host, self.port))
          self.state = RpcServer._STATE_RUN
          while self.state == RpcServer._STATE_RUN:
              self.server.handle_request()
          self.server.server_close()
          self.state = RpcServer._STATE_IDLf start(self):
          '''
          Serving loop
          '''
          print('Waiting for a client to connect to url http://%s:%d/' % (self.host, self.port))
          self.state = RpcServer._STATE_RUN
          while self.state == RpcServer._STATE_RUN:
              self.server.handle_request()
          self.server.server_close()
          self.state = RpcServer._STATE_IDLE
docs: Serving loop