mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8316671: sun/security/ssl/SSLSocketImpl/SSLSocketCloseHang.java test fails intermittent with Read timed out
Reviewed-by: lucy
This commit is contained in:
@@ -137,7 +137,8 @@ public class SSLSocketCloseHang {
|
||||
System.out.println("server ready");
|
||||
|
||||
Socket baseSocket = new Socket("localhost", serverPort);
|
||||
baseSocket.setSoTimeout(1000);
|
||||
float timeoutFactor = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0"));
|
||||
baseSocket.setSoTimeout((int)(1000 * timeoutFactor));
|
||||
|
||||
SSLSocketFactory sslsf =
|
||||
(SSLSocketFactory) SSLSocketFactory.getDefault();
|
||||
|
||||
Reference in New Issue
Block a user