8308185: Update Http2TestServerConnection to use SSLSocket.startHandshake()

Reviewed-by: djelinski
This commit is contained in:
Jaikiran Pai 2023-05-17 10:06:22 +00:00
parent b300e73a4a
commit 1a6f9810cd

View File

@ -292,7 +292,7 @@ public class Http2TestServerConnection {
private static void handshake(String name, SSLSocket sock) throws IOException {
if (name == null) {
sock.getSession(); // awaits handshake completion
sock.startHandshake(); // blocks until handshake done
return;
} else if (name.equals("localhost")) {
name = "localhost";
@ -314,7 +314,7 @@ public class Http2TestServerConnection {
List<SNIMatcher> list = List.of(matcher);
params.setSNIMatchers(list);
sock.setSSLParameters(params);
sock.getSession(); // blocks until handshake done
sock.startHandshake(); // blocks until handshake done
}
void closeIncoming() {