On Wed, 28 Jan 2026 13:18:13 GMT, Daniel Jeliński <[email protected]> wrote:

>> 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.

That would require more surgery :-) OK - so if you think we don't need to 
terminally close the stream I'm not opposed to that. The caller will get the 
exception and it's likely that it will cause the exchange to be terminated at a 
higher level anyway. This is our test server - its only purpose is to serve our 
tests.

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

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

Reply via email to