retryOnConnectionFailure
Whether to retry when a connectivity problem is encountered. When enabled, this client silently recovers from the following problems:
Unreachable IP addresses. If the URL's host has multiple IP addresses, failure to reach any individual IP address doesn't fail the overall request. This can increase availability of multi-homed services.
Stale pooled connections. The connection pool reuses sockets to decrease request latency, but these connections will occasionally time out.
Unreachable proxy servers. A ProxySelector can be used to attempt multiple proxy servers in sequence, eventually falling back to a direct connection.