Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1176

Support proxy failover per ProxySelector API

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.2 Beta1
    • 5.3-alpha1
    • HttpClient (classic)
    • None
    • All supported platforms/environments which use proxy failover

    Description

      The ProxySelectorRoutePlanner selects a single proxy from the list returned by the java.net.ProxySelector API. If the client can't open a socket to the proxy, other proxies in the list are ignored and the request fails. It would be good if the Apache HttpClient could try other proxies in the list before failing on socket errors. HttpURLConnection provides similar behavior. This functionality is useful in network configurations where proxies can go up and down for maintenance, for example.

      Attachments

        1. ProxyFailoverFix.patch
          4 kB
          Sivasubramaniam S
        2. ProxyFailoverTest.patch
          2 kB
          Sivasubramaniam S

        Activity

          People

            Unassigned Unassigned
            jmaarse Jan-Willem Maarse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: