[jdk25] Integrated: 8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win)
Alan Bateman
alanb at openjdk.org
Mon Jun 16 09:22:45 UTC 2025
On Sun, 15 Jun 2025 06:14:08 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> On Windows, if a platform thread is blocked in SocketChannel.read, and another thread closes the channel, then Windows abruptly closes the connection (RST).
>
> This is clean backport of the change in main line to jdk25.
>
> Testing: tier1-4
This pull request has now been integrated.
Changeset: 077ce2ed
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/077ce2edc77b78e0a5a968bf935ed21468751dc9
Stats: 244 lines in 5 files changed: 227 ins; 1 del; 16 mod
8358764: (sc) SocketChannel.close when thread blocked in read causes connection to be reset (win)
Reviewed-by: iris, jpai
Backport-of: e5196fc24d2ec9e581af7803ac47036111fee029
-------------
PR: https://git.openjdk.org/jdk/pull/25813
More information about the nio-dev
mailing list