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

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Verification:
      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

            Assignee:
            rpatil Ramanand Patil
            Reporter:
            rpatil Ramanand Patil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: