[jdk21u-dev] RFR: 8358496: Concurrent reading from Socket with timeout executes sequentially
Roland Mesde
duke at openjdk.org
Tue Nov 18 21:48:22 UTC 2025
On Thu, 13 Nov 2025 20:53:15 GMT, Roland Mesde <duke at openjdk.org> wrote:
> 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).
The ```ScheduledExecutorService``` class was re-introduced because the ```ForkJoinPool``` class doesn't support the ```schedule``` method in JDK 21. It was refactored to use the previous implementation for compatibility.
ForkJoinPool.commonPool().schedule(task, delay, TimeUnit.MILLISECONDS)
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/2470#issuecomment-3549484735
More information about the jdk-updates-dev
mailing list