You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountering a weird issue where a h2 stream that's upgraded used to work with h2 0.3.7, but fails with 0.3.9. (Didn't try 0.3.8 as I hit the connection hanging issue #584.)
I have a h2 stream that received a CONNECT request to host:port and subsequently upgraded. I then use tokio's copy function to copy bytes back and forth between the stream and the host:port TCP connection. For large file (> 20MB or so) downloads, write() to the stream fails and hits this error: https://github.com/tokio-rs/tokio-io/blob/master/src/copy.rs#L75-L78.
poll_write() shouldn't return Poll::Ready(Ok(0)), but Poll::Pending... I suspect it's related to the recent send buffer size changes, but can't put my finger on the line that's causing the issue.
The text was updated successfully, but these errors were encountered:
jvimal-eg
changed the title
Stream poll_write() returning Poll::Ready(Ok(0)) on large transfers
Stream poll_write() sometimes returning Poll::Ready(Ok(0)) on large transfers
Jan 16, 2022
Yes, it's a hyper::upgrade::Upgraded instance that's backed by a h2 stream. A hyper::upgrade::Upgrade instance over a http/1.1 connection works just fine.
Encountering a weird issue where a h2 stream that's upgraded used to work with h2 0.3.7, but fails with 0.3.9. (Didn't try 0.3.8 as I hit the connection hanging issue #584.)
I have a h2 stream that received a CONNECT request to host:port and subsequently upgraded. I then use tokio's copy function to copy bytes back and forth between the stream and the host:port TCP connection. For large file (> 20MB or so) downloads, write() to the stream fails and hits this error: https://github.com/tokio-rs/tokio-io/blob/master/src/copy.rs#L75-L78.
poll_write()
shouldn't returnPoll::Ready(Ok(0))
, butPoll::Pending
... I suspect it's related to the recent send buffer size changes, but can't put my finger on the line that's causing the issue.The text was updated successfully, but these errors were encountered: