[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
Sun Oct 26 20:41:30 UTC 2025
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk17u-dev/pull/4076/files
- new: https://git.openjdk.org/jdk17u-dev/pull/4076/files/d57767e8..bdb4707e
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4076&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4076&range=00-01
Stats: 12 lines in 1 file changed: 12 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk17u-dev/pull/4076.diff
Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/4076/head:pull/4076
PR: https://git.openjdk.org/jdk17u-dev/pull/4076
More information about the jdk-updates-dev
mailing list