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: retry request when error reason is normal #45

Merged
merged 1 commit into from Apr 27, 2023

Conversation

thalesmg
Copy link
Contributor

@thalesmg thalesmg marked this pull request as ready for review April 20, 2023 18:27
@thalesmg thalesmg requested a review from zmstone April 20, 2023 18:27
@thalesmg thalesmg merged commit 076429f into main Apr 27, 2023
2 checks passed
@thalesmg thalesmg deleted the fix-gun-down-normal-retry branch April 27, 2023 12:23
thalesmg added a commit to thalesmg/emqx that referenced this pull request Apr 27, 2023
Fixes https://emqx.atlassian.net/browse/EMQX-9656

See also emqx/ehttpc#45

This fixes a race condition where the remote server would close the
connection before or during requests, and, depending on timing, an
`{error, normal}` response would be returned.  In those cases, we
should just retry the request without using up "retry credits".
HJianBo added a commit to HJianBo/emqx that referenced this pull request May 4, 2023
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.

None yet

4 participants