Skip to content

Conversation

@cratelyn
Copy link
Member

@cratelyn cratelyn commented Apr 21, 2025

the initial replay body, circa the usage of our "compatibility" layer (4b53081, #3598), used to need an extra poll to confirm the absence of trailers before it would report itself as reaching the end of the stream. these tests were added in (afda8a7, #3583).

this was an artifact of how the compatibility middleware masked the previous poll_data() and poll_trailer() methods behind a forward-compatible poll_frame()- and frame()-oriented interface.

this commit removes these extra calls to initial.frame().await, now that the initial body will report the end of stream without an extra call to await a None.

the initial replay body, circa the usage of our "compatibility" layer
(4b53081, #3598), used to need an extra poll to confirm the absence of
trailers before it would report itself as reaching the end of the
stream. these tests were added in (afda8a7, #3583).

this was an artifact of how the compatibility middleware masked the
previous `poll_data()` and `poll_trailer()` methods behind a
forward-compatible `poll_frame()`- and `frame()`-oriented interface.

this commit removes these extra calls to `initial.frame().await`, now
that the initial body will report the end of stream without an extra
call to await a `None`.

X-ref: #3598
X-ref: #3583
Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn marked this pull request as ready for review April 21, 2025 16:04
@cratelyn cratelyn requested a review from a team as a code owner April 21, 2025 16:04
@olix0r olix0r merged commit ad5952f into main Apr 21, 2025
15 checks passed
@olix0r olix0r deleted the kate/http-retry.remove-initial-body-trailer-poll branch April 21, 2025 16:54
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.

3 participants