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

Implement retry mechanism for SocketExceptions #29

Merged
merged 5 commits into from
Apr 25, 2023
Merged

Conversation

bjornandre
Copy link
Contributor

@bjornandre bjornandre commented Apr 25, 2023

Maskinporten Guardian frequently gets SocketExeptions when connecting to Maskinporten. This PR will cope for this by retrying 3 times before the request fails. Note that any other execptions (e.g.. bad/invalid requests) should not trigger a retry.

@bjornandre bjornandre requested a review from a team April 25, 2023 08:07
Skaar, Bjørn-Andre added 2 commits April 25, 2023 10:20
# Conflicts:
#	src/test/java/no/ssb/guardian/maskinporten/MaskinportenAccessTokenControllerTest.java
# Conflicts:
#	src/test/java/no/ssb/guardian/maskinporten/MaskinportenAccessTokenControllerTest.java
@bjornandre bjornandre merged commit bea3b53 into master Apr 25, 2023
@bjornandre bjornandre deleted the feature/STAT-478 branch April 25, 2023 09:44
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.

2 participants