Skip to content
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

LIME-906 Correct Invalid HTTPRetryer exceptions and adjust DVLA timeout values to account for 2 endpoints with 1 retry each #138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smsgds
Copy link
Contributor

@smsgds smsgds commented Nov 20, 2023

Proposed changes

What changed

Correct the IOException type that HttpRetryer will retry to match the ones thrown by the http client used.

Why did it change

The HttpRetryer has the HttpConnectTimeoutException set as a retry condition this exception is not thrown by the HTTP client.
This has been change to allow retrying a ConnectTimeoutException or SocketTimeoutException.

For DVLA the retry has been lowered to 1 per endpoint (token/match)
The timeout values have been adjusted to be within the lambda timeout period but to allow the worst case of 1 retry for each endpoint with a slow but successful response on the retry.

Issue tracking

…ut values to account for 2 endpoints with 1 retry each
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