-
Notifications
You must be signed in to change notification settings - Fork 977
Closed
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issue
Description
Describe the feature
Context
AwsCrtHttpClient returns a generic HttpException that requires looking at the error message to understand the type of error. This is different than ApacheHttpClient which returns specific exception subclassing IOException.
Problem
Use Case
We are upgrading from V1 to V2, and moving from ApacheHttpClient to CrtHttpClient and would like to keep the same functionality on retrying on connection and socket timeouts specifically.
Proposed Solution
On connection failures map AWS_IO_SOCKET_TIMEOUT (ETIMEDOUT) error code to SocketTimeoutException. We are already doing something similar with AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE to SSLHandshakeException.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
AWS Java SDK version used
2.x
JDK version used
openjdk 17.0.14 2025-01-21 LTS
Operating System and version
AL2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.p2This is a standard priority issueThis is a standard priority issue