Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8161016 Strange behavior of URLConnection with proxy
  3. JDK-8268881

Release Note: Modified HttpURLConnection Behavior When a Suitable Proxy Is Not Found

XMLWordPrintable

    • Verified

        The behavior of `HttpURLConnection` when using `ProxySelector` has been modified in this JDK release. `HttpURLConnection` used to fall back to a direct connection attempt if the configured proxy(s) failed to make a connection. Beginning with this release, the default behavior has been changed to no longer use a direct connection when the first proxy connection attempt fails.

        A new system property, `sun.net.http.fallbackToDirect`, can be set to a value of "true" should an application need to fall back to the old behavior (fall back to a direct connection when the first proxy connection attempt fails).

              cwayne Clifford Wayne (Inactive)
              kravikumar Kiran Sidhartha Ravikumar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: