h11 icon indicating copy to clipboard operation
h11 copied to clipboard

Zerocopy Data Receiving

Open HMaker opened this issue 2 years ago • 0 comments

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.

HMaker avatar Aug 28 '23 03:08 HMaker