def create_length_prefixed_tcp_handler():
    queue = Queue()
    class LengthPrefixedTcpHandler(BaseRequestHandler):
        def handle(self):
            #msg = _read_length_prefixed_msg(self.request)
            # this will run inside a new thread
            self.request.send("hello\n")
            while True:
                b = _read_n_bytes(self.request, 10)
                self.request.send(b % "you sent: %s")
                queue.put(b)

    return queue, LengthPrefixedTcpHandler
dataset/ETHPy150Open osrg/ryu/ryu/contrib/tinyrpc/transports/tcp.py/create_length_prefixed_tcp_handler/swapped operands of `%`