< prev index next >
src/java.net.http/share/classes/jdk/internal/net/http/PlainProxyConnection.java
Print this page
rev 54110 : 8244205: HTTP/2 tunnel connections through proxy may be reused regardless of which proxy is selected
Summary: The key used in the HTTP/2 connection pool is updated to take into account the proxy address in case of tunnel connections
Reviewed-by: chegar
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -38,6 +38,11 @@
return new ConnectionPool.CacheKey(null, address);
}
@Override
public boolean isProxied() { return true; }
+
+ @Override
+ InetSocketAddress proxy() {
+ return address;
+ }
}
< prev index next >