On Wed, 28 Jan 2026 11:52:36 GMT, Daniel Fuchs <[email protected]> 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

Reply via email to