提交 1be3451f 编写于 作者: A asmotrak

8078823: javax/net/ssl/ciphersuites/DisabledAlgorithms.java fails intermittently

Reviewed-by: xuelei
上级 726ca1ac
......@@ -104,6 +104,8 @@ public class DisabledAlgorithms {
default:
throw new RuntimeException("Wrong parameter: " + args[0]);
}
System.out.println("Test passed");
}
/*
......@@ -128,7 +130,6 @@ public class DisabledAlgorithms {
}
}
server.stop();
while (server.isRunning()) {
sleep();
}
......@@ -224,11 +225,19 @@ public class DisabledAlgorithms {
} catch (SSLHandshakeException e) {
System.out.println("Server: run: " + e);
sslError = true;
stopped = true;
} catch (IOException e) {
if (!stopped) {
System.out.println("Server: run: " + e);
System.out.println("Server: run: unexpected exception: "
+ e);
e.printStackTrace();
otherError = true;
stopped = true;
} else {
System.out.println("Server: run: " + e);
System.out.println("The exception above occurred "
+ "because socket was closed, "
+ "please ignore it");
}
}
}
......@@ -261,6 +270,7 @@ public class DisabledAlgorithms {
stopped = true;
if (!ssocket.isClosed()) {
try {
System.out.println("Server: close socket");
ssocket.close();
} catch (IOException e) {
System.out.println("Server: close: " + e);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册