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). This pull request has now been integrated. Changeset: 4d54b9e4 Author: Arno Zeller <[email protected]> URL: https://git.openjdk.org/jdk/commit/4d54b9e4da1713088b40e28cb9c9eb7a4c788cda Stats: 13 lines in 1 file changed: 3 ins; 4 del; 6 mod 8392076: Sporadic failure of test InvalidateServerSessionRenegotiate.java Reviewed-by: clanger ------------- PR: https://git.openjdk.org/jdk/pull/32834
