Closed nurmohammed840 closed 1 year ago
You need to be polling the connection actively. That is what sends the actual frames.
If you use hyper, it will help take care of these things for you.
I think doc should include this information.
Thanks!
The docs do mention it:
The Connection instance is used to manage connection state. The caller is required to call either Connection::accept or Connection::poll_close in order to advance the connection state. Simply operating on SendStream or RecvStream will have no effect unless the connection state is advanced.
I am trying to send large payload (409600+ bytes)
For some reason I was unable to send payload, I think there is something wrong with
h2
crate ?Here is my code:
Here is the full example
On first iteration
poll_capacity
returnReady(Ok(409600))
, Butpoll_capacity
doesn't resolve on second iteration,Using wireshark, I notice that server didn't response with any application data at all...