H2Upgraded::poll_write
returns Ok(0)
while tokio-rustls
assumes Ok(0)
is 'successful'
#3801
Labels
C-bug
Category: bug. Something is wrong. This is bad!
Version
List the version(s) of
hyper
, and any relevant hyper dependency (such ash2
if this is related to HTTP/2).hyper: commit 12717d1
Platform
The output of
uname -a
(UNIX), or version and 32 or 64-bit (Windows)WSL2 Ubuntu on Windows 11
Description
When we wrap
tokio-rustls
around HTTP2 Upgraded stream,tokio-rustls
will infinite loop because Upgraded stream returnsOk(0)
onpoll_write
when shutdown. relevant issue rustls/tokio-rustls#92hyper/src/proto/h2/mod.rs
Lines 329 to 337 in 12717d1
I've found that when I replace
None => Some(0),
toNone => None
, it works fine.Honestly, I don't know the issue should be resolved in either
hyper
ortokio-rustls
. But this issue is important when I implement HTTP2 proxy.The text was updated successfully, but these errors were encountered: