Skip to content

fix(client): skip interim responses in recv_response - #385

Open
nfilament wants to merge 1 commit into
hyperium:masterfrom
nfilament:client-skip-interim-responses
Open

nfilament wants to merge 1 commit into
hyperium:masterfrom
nfilament:client-skip-interim-responses

Conversation

@nfilament

Copy link
Copy Markdown

Problem: recv_response returned the first HEADERS frame on a request stream, so an interim (1xx) response such as 103 Early Hints was handed to the caller as if it were the final response. recv_data then read the final response's HEADERS as trailers and returned no body, and recv_trailers failed with H3_FRAME_UNEXPECTED, closing the connection.

Solution: Skip interim responses and return the final one, as the h2 crate does.

recv_response returned the first HEADERS frame on a request stream,
so an interim (1xx) response such as 103 Early Hints was handed to the
caller as if it were the final response. recv_data then read the final
response's HEADERS as trailers and returned no body, and recv_trailers
failed with H3_FRAME_UNEXPECTED, closing the connection.

Skip interim responses and return the final one, as the h2 crate does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant