RFR: 8376479: Http3 test server thread deadlock in ThrowingPublishersInRequest [v2]

Daniel Jeliński djelinski at openjdk.org
Wed Jan 28 13:21:02 UTC 2026


On Wed, 28 Jan 2026 11:52:36 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/http3/Http3ServerStreamImpl.java line 327:
>> 
>>> 325:                     var io = new InterruptedIOException();
>>> 326:                     Thread.currentThread().interrupt();
>>> 327:                     io.initCause(e);
>> 
>> Maybe we should set `closed = true` here.
>
> Hmmm.... and if we set closed=true maybe ask the underlying stream to stop sending... and maybe reset the sending part.

I guess we should also throw a `ClosedByInterruptException` then. This way we will mimic the SocketChannel behavior. Note that the InputStream spec does not require closing the stream on interrupt.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29448#discussion_r2736603544


More information about the net-dev mailing list