mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8225298: Improve TLS connection support
Reviewed-by: dfuchs, igerasim, michaelm, rhalade, skoivu
This commit is contained in:
parent
908b4e8df3
commit
8e2b10070e
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue