def METHOD_NAME(self, upstream_conn, downstream_cli, downstream_addr):
    while True:
        msg = str(upstream_conn.recv(1024).decode("utf-8"))
        self._logger.info("Client msg: {}".format(msg))
        if msg == "Stop":
            self._server.close()
            self._logger.info("Converter stopped.")
            break
        else:
            try:
                self._validate_request(msg)
            except Exception as exc:
                upstream_conn.sendall(bytes(str(exc).encode("utf-8")))
                continue
            else:
                self._logger.info(
                    "Propagating query {} to {}".format(
                        msg, downstream_addr
                    )
                )
            result = self._process_request(downstream_cli, msg)
            upstream_conn.sendall(bytes(result.encode("utf-8")))