Announcement: Enabling OkHttp's retryOnConnectionFailure by default #1770
Amazon Web Services Admin
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What's changing
An upcoming release of the AWS SDK for Kotlin will enable OkHttp’s
retryOnConnectionFailureoption by default.When
retryOnConnectionFailureis enabled, clients will silently recover from the following problems:The SDK is already set up to recover from various transient issues, and enabling this option expands this coverage even further. While this change is not necessarily breaking, increased attempts at error recovery may affect your application’s call patterns or increase resource usage.
How to migrate
The
retryOnConnectionFailureconfiguration is now enabled by default, so all you have to do is upgrade your aws-sdk-kotlin and smithy-kotlin dependencies to v1.6.0 or later.If you encounter any issues with this new configuration, you can disable it by overriding the default HTTP configuration. For example:
For more details on HTTP configuration, see our developer guide.
Release date
This feature will ship with the v1.6.0 release planned for no earlier than 1/15/2026.
Feedback
If you have any questions concerning this change, please feel free to engage with us in this discussion. If you encounter a bug with these changes, please file an issue.
Beta Was this translation helpful? Give feedback.
All reactions