Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

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

Open
IcyCC opened this issue Sep 28, 2017 · 0 comments

Comments

@IcyCC
Copy link

IcyCC commented Sep 28, 2017

like this

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

in asyncio.Protocol

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant