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
{{ message }}
Repository navigation
fix(http09): resume partially written request lines - #2867
The HTTP/0.9 client treated any successful stream_send call as a complete request. QUIC can accept only part of the request line when stream flow-control capacity is limited; in that case the client advanced to the next stream and never sent the remaining bytes or FIN.
This change:
tracks the number of request-line bytes accepted for each HTTP/0.9 request;
resumes the remainder on the same stream on the next send_requests call;
keeps the request at the front of the pending queue until all bytes and FIN are accepted;
advances the stream ID and sent-request count only after the request is complete;
retries Error::Done without losing the stream ID or byte offset.
Regression tests
Adds focused tests for:
multiple partial writes (8 + 21 + 1 bytes) on the same stream;
a blocked send after a partial write, followed by successful resumption from the saved offset.
Testing
Not run locally in this environment. The regression tests are added to the apps crate; CI should run formatting and Rust tests.
Thanks for the review. The current head's CI checks are reporting action_required for the Semgrep, Nightly, and Stable workflows, so they have not executed. Could a maintainer approve the pending fork workflow runs so the regression tests can be validated?
The partial-write regression coverage is in the current head, including same-stream resumption and retry after Error::Done. The PR is mergeable and has no substantive unresolved inline feedback in the threads I can see. Could a maintainer review it when available?
The partial-write regression coverage is in the current head and GitHub reports the PR as mergeable. The Semgrep, Nightly, and Stable fork workflows remain action_required, so there is no fresh CI result. Could a maintainer approve the pending workflow runs so the tests can execute?
This branch has not been deployed
No deployments
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
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.
Fixes #2861.
Summary
The HTTP/0.9 client treated any successful
stream_sendcall as a complete request. QUIC can accept only part of the request line when stream flow-control capacity is limited; in that case the client advanced to the next stream and never sent the remaining bytes or FIN.This change:
send_requestscall;Error::Donewithout losing the stream ID or byte offset.Regression tests
Adds focused tests for:
Testing
Not run locally in this environment. The regression tests are added to the apps crate; CI should run formatting and Rust tests.