Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zerocopy Data Receiving #165

Open
HMaker opened this issue Aug 28, 2023 · 0 comments
Open

Zerocopy Data Receiving #165

HMaker opened this issue Aug 28, 2023 · 0 comments

Comments

@HMaker
Copy link

HMaker commented Aug 28, 2023

socket.recv_into() accepts a Python writable buffer to receive socket data without any copy. To take advantage of that asyncio have added a Protocol interface for buffered streaming protocols suitable for high performance network applications.

I think h11.Connection could expose its buffer like asyncio.BufferedProtocol does.

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

No branches or pull requests

1 participant