[jdk17u-dev] RFR: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win)
Goetz Lindenmaier
goetz at openjdk.org
Tue Oct 28 10:16:16 UTC 2025
On Tue, 16 Sep 2025 08:04:05 GMT, Voznia Anton <duke at openjdk.org> wrote:
> Hello,
>
> This is an unclean backport of JDK-8358764 for JDK 17.
> I used the following JDK 21 backport as the baseline https://github.com/openjdk/jdk21u-dev/pull/2137
>
> Changes:
> * Brought over the Windows socket shutdown on write changes introduced with the virtual threads commit.
> * Removed comments related to virtual threads.
> * Adapted PeerReadsAfterAsyncClose.java to JDK 17 (removed virtual thread test case/scenario).
>
>
> Notes:
> The fix affects Windows only.
> Tested test/jdk/java/nio/ and test/jdk/java/net/ on macOS/ARM and Windows/x64.
> The introduced test passed successfully.
>
> OpenJDK GHA Sanity Checks also passed.
Hi @antonvoznia
have you seen my PR? I see yours has been pending for a while, I was not aware of that.
Maybe you want to have a look at my PR?
Best, Goetz.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/3936#issuecomment-3455647929
More information about the jdk-updates-dev
mailing list