Skip to content

Clarify Apache HTTP's default retry strategy #652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

mike706574
Copy link

@mike706574 mike706574 commented Mar 25, 2025

The README claims that the underlying Apache HTTP client retries IOExceptions by default - which is misleading because there are four subclasses of IOException that are not retried documented in the Javadoc:

  • InterruptedIOException
  • UnknownHostException
  • ConnectException
  • SSLException

I got hit by a SocketTimeoutException not being retried because it extends InterruptedIOException.

This change is just an edit to the README to clarify that only some kinds of IOExceptions are retried and links to the Javadocs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant