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

fix: Cancel retry if the request failed due to a cancelled context #339

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

mniehe
Copy link
Contributor

@mniehe mniehe commented Apr 4, 2024

The current implementation of the retry mechanism only tests if an error occurred and ignores what the error was. This PR adds a check to see if the original request failed because the attached context was cancelled.

@mniehe mniehe changed the title Stop retry if the request failed due to a cancelled context Cancel retry if the request failed due to a cancelled context Apr 4, 2024
@mniehe mniehe changed the title Cancel retry if the request failed due to a cancelled context fix: Cancel retry if the request failed due to a cancelled context Apr 4, 2024
@imroc imroc merged commit b4352e0 into imroc:master Apr 7, 2024
2 checks passed
@imroc
Copy link
Owner

imroc commented Apr 7, 2024

thanks

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