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

Alan Bateman alanb at openjdk.org
Sun Jun 15 18:30:12 UTC 2025


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

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

Commit messages:
 - Backport e5196fc24d2ec9e581af7803ac47036111fee029

Changes: https://git.openjdk.org/jdk/pull/25813/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25813&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358764
  Stats: 244 lines in 5 files changed: 227 ins; 1 del; 16 mod
  Patch: https://git.openjdk.org/jdk/pull/25813.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25813/head:pull/25813

PR: https://git.openjdk.org/jdk/pull/25813


More information about the nio-dev mailing list