# HG changeset patch # User ssahoo # Date 1542265939 28800 # Node ID 9111de8b09a18d5ba88574b6128d61fb81c80445 # Parent 3cef1aaf3d89fec28ca93339e432630f8c90510a 8211787: javax/net/ssl/TLSCommon/TLSTest.java throws java.net.SocketTimeoutException: Read timed out Summary: java.net.SocketTimeoutException: Read timed out Reviewed-by: xuelei diff -r 3cef1aaf3d89 -r 9111de8b09a1 test/jdk/javax/net/ssl/TLSCommon/TLSTest.java --- a/test/jdk/javax/net/ssl/TLSCommon/TLSTest.java Thu Nov 15 11:23:43 2018 +0530 +++ b/test/jdk/javax/net/ssl/TLSCommon/TLSTest.java Wed Nov 14 23:12:19 2018 -0800 @@ -213,13 +213,12 @@ // specify the enabled server cipher suites sslServerSocket.setEnabledCipherSuites(new String[]{this.cipher}); sslServerSocket.setEnabledProtocols(new String[]{tlsProtocol}); + sslServerSocket.setSoTimeout(25000); /* * Signal Client, the server is ready to accept client request. */ latch.countDown(); try (SSLSocket sslSocket = (SSLSocket) sslServerSocket.accept()) { - sslSocket.setNeedClientAuth(false); - sslSocket.setSoTimeout(5000); try (InputStream sslIS = sslSocket.getInputStream(); OutputStream sslOS = sslSocket.getOutputStream();) { sslIS.read();