8211787: javax/net/ssl/TLSCommon/TLSTest.java throws java.net.SocketTimeoutException: Read timed out
Summary: java.net.SocketTimeoutException: Read timed out
Reviewed-by: xuelei
--- 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();