[jdk17u-dev] RFR: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win) [v6]

Voznia Anton duke at openjdk.org
Thu Nov 6 11:52:34 UTC 2025


On Thu, 6 Nov 2025 11:25:28 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.
>> Update: I added this later.
>> 
>> 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:
> 
>   test adaptions by Anton Voznia

@GoeLin , LGTM, thank you!

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

Marked as reviewed by antonvoznia at github.com (no known OpenJDK username).

PR Review: https://git.openjdk.org/jdk17u-dev/pull/4076#pullrequestreview-3427779613


More information about the jdk-updates-dev mailing list