[jdk17u-dev] RFR: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win) [v2]
Goetz Lindenmaier
goetz at openjdk.org
Tue Oct 28 10:04:36 UTC 2025
On Sun, 26 Oct 2025 20:41:30 GMT, Goetz Lindenmaier <goetz at openjdk.org> wrote:
>> I backport this for parity with 17.0.18-oracle.
>>
>> Needed resolve and adaptions:
>>
>> Net.java: resolved static initializer.
>> SocketChannelImpl.java: In implCloseBlockingMode(), the code guarded by the new condition is not in 17. Omitted.
>> Net.c: Copyright.
>>
>> The test exercises platform and virtual threads.
>> I simplified this to what is supported in 17.
>> See extra commit.
>
> Goetz Lindenmaier has updated the pull request incrementally with one additional commit since the last revision:
>
> add code from 8284161 along with fix of this change
Hi @AlanBateman and Kieran Farrell,
do you mind having a look at this?
The code patched by the original change in SocketChannelImpl.java
is not in 17. Do you think it is ok to include this in 17 along with
this change? It seems to be a fix independent of the loom change that added it.
Thanks! Goetz.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/4076#issuecomment-3455577219
More information about the jdk-updates-dev
mailing list