Skip to content

Commit 76d21ea

Browse files
author
duke
committed
Backport 1a6f9810cd5bcd3cdbdd1505900c0e8c7f091b22
1 parent 4addb57 commit 76d21ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/java/net/httpclient/lib/jdk/httpclient/test/lib/http2/Http2TestServerConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ private static boolean compareIPAddrs(InetAddress addr1, String host) {
323323

324324
private static void handshake(String name, SSLSocket sock) throws IOException {
325325
if (name == null) {
326-
sock.getSession(); // awaits handshake completion
326+
sock.startHandshake(); // blocks until handshake done
327327
return;
328328
} else if (name.equals("localhost")) {
329329
name = "localhost";
@@ -345,7 +345,7 @@ public boolean matches (SNIServerName n) {
345345
List<SNIMatcher> list = List.of(matcher);
346346
params.setSNIMatchers(list);
347347
sock.setSSLParameters(params);
348-
sock.getSession(); // blocks until handshake done
348+
sock.startHandshake(); // blocks until handshake done
349349
}
350350

351351
void closeIncoming() {

0 commit comments

Comments
 (0)