Repository navigation
fix(http3): treat STOP_SENDING with code 0 as benign stop-sending - #3152
Open
aloneangel45 wants to merge 1 commit into
Open
aloneangel45 wants to merge 1 commit into
aloneangel45 wants to merge 1 commit into
Conversation
When a peer using quinn drops its unread receive half without calling stop_sending(H3_NO_ERROR), QUIC sends STOP_SENDING with error code 0x0. Update h3_client::pool::is_stop_sending to treat code 0 as benign alongside Code::H3_NO_ERROR while still propagating HTTP/3 errors such as H3_INTERNAL_ERROR. Fixes seanmonstar#3147
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When an HTTP/3 server drops an unread request receive stream (e.g. quinn::RecvStream::drop), QUIC emits STOP_SENDING with wire error code x0 rather than H3_NO_ERROR (x100). Previously h3_client::pool::is_stop_sending only matched Code::H3_NO_ERROR, causing send.send_data() / send.finish() to fail the exchange with StreamError::RemoteTerminate { code: 0x0 }.
Changes
Verification
Ran locally (RUSTFLAGS="--cfg reqwest_unstable"):
10/10 tests in ests/http3.rs passed and 48/48 lib unit tests passed.
Fixes #3147