Skip to content

Commit 1f7dfda

Browse files
committedSep 26, 2023
8316671: sun/security/ssl/SSLSocketImpl/SSLSocketCloseHang.java test fails intermittent with Read timed out
Reviewed-by: lucy
1 parent 20ff603 commit 1f7dfda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎test/jdk/sun/security/ssl/SSLSocketImpl/SSLSocketCloseHang.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ void doClientSide() throws Exception {
137137
System.out.println("server ready");
138138

139139
Socket baseSocket = new Socket("localhost", serverPort);
140-
baseSocket.setSoTimeout(1000);
140+
float timeoutFactor = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0"));
141+
baseSocket.setSoTimeout((int)(1000 * timeoutFactor));
141142

142143
SSLSocketFactory sslsf =
143144
(SSLSocketFactory) SSLSocketFactory.getDefault();

0 commit comments

Comments
 (0)
Please sign in to comment.