Skip to content
This repository has been archived by the owner. 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 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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.