-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for retry options #12
Comments
@ecampidoglio Can I take care of this issue? I also suggest to support options |
@deqenq Sure! I think it's a good idea to include |
@ecampidoglio PR sent. Added configuration options: Later I will add these two options in separate PR: |
Curl has built-in functionality to automatically retry a failed request. This behavior is controlled primarily with three options:
--retry <num>
the number of time curl should retry the request before giving up--retry-delay <seconds>
the amount of time to wait between retries--retry-max-time <seconds>
the maximum amount of time to wait before retriesBy default, curl will increment the delay between attempts by doubling the last waiting time, starting from 1 second until it reaches the value specified in
--retry-max-time
or 10 minutes. Although this behavior should cover most scenarios, it's possible to override it by setting a fixed delay right from the start with the--retry-delay
optionIt would be nice if Cake.Curl exposed these options through the
CurlSettings
class.The text was updated successfully, but these errors were encountered: