8308185: Update Http2TestServerConnection to use SSLSocket.startHandshake()
Reviewed-by: djelinski
This commit is contained in:
parent
b300e73a4a
commit
1a6f9810cd
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user