Skip to content

Issue #15667 - HTTP/2/3 client discards response on abrupt connection close - #15669

Draft
lachlan-roberts wants to merge 1 commit into
jetty-12.1.xfrom
fix/jetty-12.1.x/15667-HttpClientStreamTest
Draft

lachlan-roberts wants to merge 1 commit into
jetty-12.1.xfrom
fix/jetty-12.1.x/15667-HttpClientStreamTest

Conversation

@lachlan-roberts

Copy link
Copy Markdown
Member

Fixes #15667

In the test HttpClientStreamTest#testDownloadWithFailure the server sends half of the response then abruptly closes the TCP connection.

However since the HEADERS/DATA frames are delivered asynchronously using the channels SerializedInvoker, the abort is racing against the processing of the headers frame.

This PR sends the abort through the same SerializedInvoker, so it is serialized behind any events already received.

Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
@lachlan-roberts

Copy link
Copy Markdown
Member Author

The test failures don't look like flakes.
Reverting the PR to draft and I will investigate the failures.

@lachlan-roberts
lachlan-roberts marked this pull request as draft September 1, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug For general bugs on Jetty side flaky-test

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Flaky Test: HttpClientStreamTest.testDownloadWithFailure

1 participant