8244205: HTTP/2 tunnel connections through proxy may be reused regardless of which proxy is selected

Daniel Fuchs daniel.fuchs at oracle.com
Fri May 1 14:38:11 UTC 2020


Hi,

Please find below a fix for:
8244205: HTTP/2 tunnel connections through proxy may be
          reused regardless of which proxy is selected
https://bugs.openjdk.java.net/browse/JDK-8244205

webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8244205/webrev.00/index.html

If a tunnel connection is opened to an HTTP/2 host through a proxy,
it will be reused for the next HTTP/2 request to that host, regardless
of whether the ProxySelector (if present) selects another proxy
for that host.

The fix changes the structure of the key used in the Http2ClientImpl
connection pool to record both the host and proxy addresses in the
key for tunnel connection, rather than only recording whether
a proxy was used.

best regards,

-- daniel


More information about the net-dev mailing list