[jdk21u-dev] RFR: 8358496: Concurrent reading from Socket with timeout executes sequentially

Roland Mesde duke at openjdk.org
Thu Nov 13 21:56:03 UTC 2025


Backporting JDK-8358496: Concurrent reading from Socket with timeout executes sequentially. Updated SocketImpl so that the timeout applies to the total time waiting to acquire and read. Adds a new test to the existing java/net/Socket/Timeouts test. The test was minimally modified from the original commit for JDK version compatibility.

Ran GHA Sanity Checks (passed) and related test (passed).

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

Commit messages:
 - Refactor for JDK version compatibility
 - Backport 7838321b74276e45b92c54904ea31ef70ed9e33f

Changes: https://git.openjdk.org/jdk21u-dev/pull/2470/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2470&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8358496
  Stats: 167 lines in 2 files changed: 68 ins; 5 del; 94 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/2470.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2470/head:pull/2470

PR: https://git.openjdk.org/jdk21u-dev/pull/2470


More information about the jdk-updates-dev mailing list