8001466: Nightly regression test failure of SSLSocketSNISensitive.java
Reviewed-by: weijun
This commit is contained in:
parent
aff615b4d6
commit
b01d15feb0
@ -267,6 +267,9 @@ public class SSLSocketSNISensitive {
|
|||||||
|
|
||||||
SSLSocket sslSocket = (SSLSocket)sslServerSocket.accept();
|
SSLSocket sslSocket = (SSLSocket)sslServerSocket.accept();
|
||||||
try {
|
try {
|
||||||
|
sslSocket.setSoTimeout(5000);
|
||||||
|
sslSocket.setSoLinger(true, 5);
|
||||||
|
|
||||||
InputStream sslIS = sslSocket.getInputStream();
|
InputStream sslIS = sslSocket.getInputStream();
|
||||||
OutputStream sslOS = sslSocket.getOutputStream();
|
OutputStream sslOS = sslSocket.getOutputStream();
|
||||||
|
|
||||||
@ -312,6 +315,9 @@ public class SSLSocketSNISensitive {
|
|||||||
sslSocket.setSSLParameters(params);
|
sslSocket.setSSLParameters(params);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
sslSocket.setSoTimeout(5000);
|
||||||
|
sslSocket.setSoLinger(true, 5);
|
||||||
|
|
||||||
InputStream sslIS = sslSocket.getInputStream();
|
InputStream sslIS = sslSocket.getInputStream();
|
||||||
OutputStream sslOS = sslSocket.getOutputStream();
|
OutputStream sslOS = sslSocket.getOutputStream();
|
||||||
|
|
||||||
@ -519,7 +525,7 @@ public class SSLSocketSNISensitive {
|
|||||||
*
|
*
|
||||||
* Release the client, if not active already...
|
* Release the client, if not active already...
|
||||||
*/
|
*/
|
||||||
System.err.println("Server died...");
|
System.err.println("Server died, because of " + e);
|
||||||
serverReady = true;
|
serverReady = true;
|
||||||
serverException = e;
|
serverException = e;
|
||||||
}
|
}
|
||||||
@ -547,7 +553,7 @@ public class SSLSocketSNISensitive {
|
|||||||
/*
|
/*
|
||||||
* Our client thread just died.
|
* Our client thread just died.
|
||||||
*/
|
*/
|
||||||
System.err.println("Client died...");
|
System.err.println("Client died, because of " + e);
|
||||||
clientException = e;
|
clientException = e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user