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

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 7u321, 8u311
    • Fix Version/s: 8u311
    • Component/s: core-libs

      Description

      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).

        Attachments

          Activity

            People

            Assignee:
            kravikumar Kiran Sidhartha Ravikumar (Inactive)
            Reporter:
            kravikumar Kiran Sidhartha Ravikumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: