asyncio icon indicating copy to clipboard operation
asyncio copied to clipboard

Why asyncio.transport.write() function don`t send data until I use transport.close() or stop the event loop.

Open IcyCC opened this issue 6 years ago • 0 comments

like this

    def data_received(self, data):
        
        resp = b'\x05' + struct.pack('!B', self.method)
        self.transport.write(resp)

in asyncio.Protocol

IcyCC avatar Sep 28 '17 15:09 IcyCC