[9] RFR: 8078823: javax/net/ssl/ciphersuites/DisabledAlgorithms.java fails intermittently

Artem Smotrakov artem.smotrakov at oracle.com
Mon May 25 15:58:43 UTC 2015


Please review this fix for 
javax/net/ssl/ciphersuites/DisabledAlgorithms.java test.

It fails very rarely with SocketException. The test runs clients in main 
thread, but a server runs in a separate thread. In checkFailure() 
method, clients expect a SSLHandshakeException, and when it occurs, they 
stop the server by calling SSLServer.stop() method which makes the 
server close its server socket. The server usually throws an expected 
SSLHandshakeException, then server socket is closed. But it seems that 
sometimes the server closes the server socket before handshake failure 
is processed. As a result, IOException happens instead of 

The server should stop if any exception occurs, and clients shouldn't 
stop the server by themselves.

Bug: https://bugs.openjdk.java.net/browse/JDK-8078823
Webrev: http://cr.openjdk.java.net/~asmotrak/8078823/webrev.00/


More information about the security-dev mailing list