RFR: 8376479: Http3 test server thread deadlock in ThrowingPublishersInRequest
Daniel Fuchs
dfuchs at openjdk.org
Tue Jan 27 15:39:11 UTC 2026
On Tue, 27 Jan 2026 13:54:07 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> This fixes a deadlock between the thread that reads from the RequestBodyInputStream and the thread that tries to close it in response to a stream reset. See the linked JBS ticket for details.
>
> Tier1 and tier2 tests continue to pass. I verified that with this change there are no busy threads at the end of the test.
test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/http3/Http3ServerStreamImpl.java line 329:
> 327: if (closed) {
> 328: throw new IOException("Stream is closed");
> 329: }
No sure we want that. If there is some unread data we want to read it first.
test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/http3/Http3ServerStreamImpl.java line 329:
> 327: if (closed) {
> 328: throw new IOException("Stream is closed");
> 329: }
No sure we want that. If there is some unread data we want to read it first.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29448#discussion_r2732601433
PR Review Comment: https://git.openjdk.org/jdk/pull/29448#discussion_r2732606107
More information about the net-dev
mailing list