On Fri, 11 Sep 2026 07:36:12 GMT, Arno Zeller <[email protected]> wrote:
> Avoid a race condition in > test/jdk/sun/security/ssl/SSLSocketImpl/InvalidateServerSessionRenegotiate.java. > The HandshakeCompletedListener is invoked asynchronously, but the test only > uses a fixed Thread.sleep(1000) before checking the completion count. Under > load or slow systems, one or both listener callbacks could arrive after the > sleep expired, causing a spurious failure even though the handshakes > completed successfully. > Use a CountDownLatch to avoid this. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). Looks great, thanks for fixing this. ------------- Marked as reviewed by clanger (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/32834#pullrequestreview-5244571085
