src/java.net.http/share/classes/jdk/internal/net/http/AsyncSSLTunnelConnection.java
--- a/src/java.net.http/share/classes/jdk/internal/net/http/AsyncSSLTunnelConnection.java Tue Feb 13 16:22:49 2018 +0000
+++ b/src/java.net.http/share/classes/jdk/internal/net/http/AsyncSSLTunnelConnection.java Wed Feb 14 16:04:18 2018 +0000
@@ -49,7 +49,7 @@
InetSocketAddress proxy,
HttpHeaders proxyHeaders)
{
- super(addr, client, Utils.getServerName(addr), alpn);
+ super(addr, client, Utils.getServerName(addr), addr.getPort(), alpn);
this.plainConnection = new PlainTunnelingConnection(addr, proxy, client, proxyHeaders);
this.writePublisher = new PlainHttpPublisher();
}