You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
In many places in the PHP SDK max_retries is compared using the <= operator, resulting in a max_retries of 0 meaning "retry once". I found this comparison in 5+ source files, here is the example I hit:
0 === max_retries === try initially, but don't retry if the request fails.
1 === max_retries === try initially, and retry once if the request fails.
etc.
At first glance, this would seem to be appropriate behaviour.
This retry loop is a recursive call to itself. So if this if() is executed, it's after a failure has already occurred. See sdk.class.php line 964 where the request is already sent, then line 983 where the code I pasted is wrapped in an "if the response is 500 or 503.."
Another file this occurs in is ec2.class.php -- probably happens in each service that uses max_retries.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In many places in the PHP SDK max_retries is compared using the <= operator, resulting in a max_retries of 0 meaning "retry once". I found this comparison in 5+ source files, here is the example I hit:
The text was updated successfully, but these errors were encountered: