Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.2 Beta1
-
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.