Skip to content

Retry after socket timeout exceptions, too#1072

Merged
richardm-stripe merged 2 commits intomasterfrom
richardm-retry-after-sockettimeout-exceptions-too
Jul 30, 2020
Merged

Retry after socket timeout exceptions, too#1072
richardm-stripe merged 2 commits intomasterfrom
richardm-retry-after-sockettimeout-exceptions-too

Conversation

@richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Jul 30, 2020

Fixes #1071

Causes HttpClient to retry after both ConnectException and SocketTimeoutException (previously it only retried after ConnectException).

My impression is that SocketTimeoutException occurs if a socket has successfully been established, but too much time has elapsed without any bytes being written through it. Whereas 'ConnectException' includes timeouts for the socket becoming established in the first place.

r? @ob-stripe
cc @remi-stripe @cjavilla-stripe @stripe/api-libraries

Copy link
Contributor

@ob-stripe ob-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@richardm-stripe richardm-stripe merged commit e63557b into master Jul 30, 2020
@richardm-stripe richardm-stripe deleted the richardm-retry-after-sockettimeout-exceptions-too branch July 30, 2020 17:02
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.

Stripe SDK retry on java.net.ConnectException

2 participants