RFR: 8371559: Intermittent timeouts in test javax/net/ssl/Stapling/HttpsUrlConnClient.java
Mikhail Yankelevich
myankelevich at openjdk.org
Fri Dec 12 17:26:52 UTC 2025
On Fri, 12 Dec 2025 09:30:23 GMT, Arno Zeller <azeller at openjdk.org> wrote:
> The test javax/net/ssl/Stapling/HttpsUrlConnClient.java sometimes hangs and run into timeouts. By adding some more tracing it showed that it can happen on machines with high load that the client thread throws a "Server not ready yet" RuntimeException because it only waits for 5 seconds for the server thread to come available.
> I added some more output in case of errors to better see the issue and use the timeout factor to modify the maximum wait time.
Actually, what do you think about changing this test to utilise a countdownlatch instead of `serverReady` boolean?
This way we can get rid of the sleep all together, as there is still a chance of the same error happening
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28784#issuecomment-3647460825
More information about the security-dev
mailing list