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

When exactly do retries happen? #102

Open
ericjs opened this issue Nov 17, 2015 · 1 comment
Open

When exactly do retries happen? #102

ericjs opened this issue Nov 17, 2015 · 1 comment

Comments

@ericjs
Copy link

ericjs commented Nov 17, 2015

I understand that "-max-time=N" will cancel and retry if a reponse doesn't come back in N seconds .

And I read in Changes.txt "curl to retry 3 times in most cases", and gather it depends on one's version of curl supporting retries or else it will be disabled. The documentation page also says "Retries all requests up to 3 times".

But when exactly do and don't retries happen? Will it retry any command on any error response or just some? For example a head command returning 404 probably shouldn't retry. A checksum failure probably should retry. I would think 400-series errors should not retry, but 500-series errors should. Is this the rule of thumb used?

@timkay
Copy link
Owner

timkay commented Nov 18, 2015

I think it does as you suggest, retry when it makes sense based on the http
code. (I have seen a situation where the web server returned the wrong http
code, and the retry did not happen even though a retry would have solved
the problem.) I can't answer in much detail, as it's mostly a curl issue.
On Nov 17, 2015 1:25 PM, "Eric" [email protected] wrote:

I understand that "-max-time=N" will cancel and retry if a reponse doesn't
come back in N seconds .

And I read in Changes.txt "curl to retry 3 times in most cases", and
gather it depends on one's version of curl supporting retries or else it
will be disabled. The documentation page also says "Retries all requests up
to 3 times".

But when exactly do and don't retries happen? Will it retry any command on
any error response or just some? For example a head command returning 404
probably shouldn't retry. A checksum failure probably should retry. I would
think 400-series errors should not retry, but 500-series errors should. Is
this the rule of thumb used?


Reply to this email directly or view it on GitHub
#102.

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

No branches or pull requests

2 participants