OpenJDK / jdk7u / jdk7u / jdk
changeset 8900:d484d838edbc
8225298: Improve TLS connection support
Reviewed-by: dfuchs, igerasim, michaelm, rhalade, skoivu
author | igerasim |
---|---|
date | Sat, 22 Jun 2019 20:46:46 -0700 |
parents | 3b2d24a436e3 |
children | b9c5f852bbde |
files | src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Sun Jun 16 13:14:32 2019 -0700 +++ b/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Sat Jun 22 20:46:46 2019 -0700 @@ -1947,6 +1947,10 @@ } while (retryTunnel < maxRedirects); if (retryTunnel >= maxRedirects || (respCode != HTTP_OK)) { + if (respCode != HTTP_PROXY_AUTH) { + // remove all but authenticate responses + responses.reset(); + } throw new IOException("Unable to tunnel through proxy."+ " Proxy returns \"" + statusLine + "\"");