changeset 53535:9111de8b09a1

8211787: javax/net/ssl/TLSCommon/TLSTest.java throws java.net.SocketTimeoutException: Read timed out Summary: java.net.SocketTimeoutException: Read timed out Reviewed-by: xuelei
author ssahoo
date Wed, 14 Nov 2018 23:12:19 -0800
parents 3cef1aaf3d89
children 40474b7105f4
files test/jdk/javax/net/ssl/TLSCommon/TLSTest.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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();