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

Release Note: Modified HttpURLConnection behavior when no suitable proxy is found

    XMLWordPrintable

Details

    • Verified

    Description

      The behavior of HttpURLConnection when using a ProxySelector has been modified with this JDK release. HttpURLConnection used to fall back to a DIRECT connection attempt if the configured proxy(s) failed to make a connection.
      This release introduces a change whereby no DIRECT connection will be attempted in such a scenario. Instead, the HttpURLConnection.connect() method will fail and throw an IOException which occurred from the last proxy tested.

      Attachments

        Activity

          People

            rpatil Ramanand Patil (Inactive)
            rpatil Ramanand Patil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: