8211787: javax/net/ssl/TLSCommon/TLSTest.java throws java.net.SocketTimeoutException: Read timed out
authorssahoo
Wed, 14 Nov 2018 23:12:19 -0800
changeset 52567 9111de8b09a1
parent 52566 3cef1aaf3d89
child 52568 40474b7105f4
8211787: javax/net/ssl/TLSCommon/TLSTest.java throws java.net.SocketTimeoutException: Read timed out Summary: java.net.SocketTimeoutException: Read timed out Reviewed-by: xuelei
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();