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
This issue also relates to compio-rs/cyper#25. In compio, a stream cannot have a flush request and a shutdown request pending at the same time. We tried to workaround the unexpected behavior caused here (i.e. poll_flush + poll_shutdown in the same task poll), but it ended up causing more issues such as connections not transitioning to Closed state. I guess it's better to fix the root issue in h2, hence bringing it here instead of introducing another workaround.
Regarding the fix, I would suggest adding a flag to guard this poll_flush call so that it will only be called when necessary.
The text was updated successfully, but these errors were encountered:
Code to reproduce
Actual result
polling flush
appears many times even afterpolling shutdown
. The unexpected flush leads to a panic.Expected result
When
poll_shutdown
returnsPoll::Pending
,poll_flush
should not be called afterwards. Calling_main_tcp
produces the following output:Background
This issue also relates to compio-rs/cyper#25. In
compio
, a stream cannot have aflush
request and ashutdown
request pending at the same time. We tried to workaround the unexpected behavior caused here (i.e.poll_flush
+poll_shutdown
in the same taskpoll
), but it ended up causing more issues such asconnection
s not transitioning toClosed
state. I guess it's better to fix the root issue in h2, hence bringing it here instead of introducing another workaround.Regarding the fix, I would suggest adding a flag to guard this
poll_flush
call so that it will only be called when necessary.The text was updated successfully, but these errors were encountered: