mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-11 05:59:52 +00:00
8225298: Improve TLS connection support
Reviewed-by: dfuchs, igerasim, michaelm, rhalade, skoivu
This commit is contained in:
parent
908b4e8df3
commit
8e2b10070e
@ -2171,6 +2171,10 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
||||
} 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 + "\"");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user