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

Goetz Lindenmaier goetz at openjdk.org
Mon Nov 10 20:14:52 UTC 2025


On Tue, 21 Oct 2025 10:12:17 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.

This pull request has now been integrated.

Changeset: e3c50e1b
Author:    Goetz Lindenmaier <goetz at openjdk.org>
URL:       https://git.openjdk.org/jdk17u-dev/commit/e3c50e1b14afde0d02d8d39b3ae8569c97d1855b
Stats:     246 lines in 5 files changed: 238 ins; 0 del; 8 mod

8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win)

Reviewed-by: mdoerr
Backport-of: 83f9c250221f707be484e0163fe9040f99474412

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

PR: https://git.openjdk.org/jdk17u-dev/pull/4076


More information about the jdk-updates-dev mailing list