Hello,

Please review the following patch for javax/net/ssl/TLS/TestJSSE.java test.

The test fails intermittently with BindException because it can use a busy port. The test uses jdk.testlibrary.Utils.getFreePort() which creates a server socket, and returns its local port number. Then this port number is used to creates a new SSL server socket. It looks like the port may be already busy when a new SSL socket is being created.

The patch removes usage of jdk.testlibrary.Utils.getFreePort(). Now the SSL server creates a server socket by calling SSLServerSocketFactory.createServerSocket(0) which opens a socket on a free port. Then this port number is passed to the client.

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

Artem

Reply via email to