Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

h3: set stream priority after headers buffered #1790

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

LPardue
Copy link
Contributor

@LPardue LPardue commented May 18, 2024

send_headers() can fail if there is not enough stream capacity to buffer
encoded headers. Applications are expected to try again later.
Previously, send_response_with_priority() would update
the stream priority prior to send_headers(), which might surprise
some types of applications relying on the writable() iterator.

This change swaps the ordering around so that priority is only changed
after headers have been successfully buffered.

send_headers() can fail if there is not enough stream capacity to buffer
encoded headers and applications are expected to try again later.
Previously, send_response_with_priority() would update
the stream priority prior to send_headers(), which might surprise
some types of applications relying on the writable() iterator.

This change swaps the ordering around so that priority is only changed
after headers have been successfully buffered.
@LPardue LPardue requested a review from a team as a code owner May 18, 2024 00:12
@ghedo ghedo merged commit 8420d27 into master May 20, 2024
38 checks passed
@ghedo ghedo deleted the prioritize-after-send branch May 20, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants