Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpClient] Parameterize list of retryable methods#38426
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
jderusse commentedOct 6, 2020
I wonder if the implementation/configuration shouldn't be more complicated:
Maybe:
|
68a37b1 to070c1beCompareUh oh!
There was an error while loading.Please reload this page.
2d35c26 toe40e360Comparejderusse commentedOct 6, 2020
failling test are related to Could not parse version constraint >=5.x: Invalid version string "5.x" And related to async-aws that should be fixed byasync-aws/aws#802 |
f6270bb to73db919Compare
Nyholm left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you. I like this. I added a bunch of questions for things I dont understand.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
3f9fb7a toa7f7ec5CompareUh oh!
There was an error while loading.Please reload this page.
nicolas-grekas commentedOct 12, 2020
Let's settle on#38532 before merging (and rebasing) this one. |
ab67ad5 to434d5a3Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
for exceptions, we could use the status code0
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
2c1ee99 to83d8d10Comparesrc/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
fabpot commentedOct 20, 2020
Thank you@jderusse. |
Uh oh!
There was an error while loading.Please reload this page.
Retrying non-idempotent methods is not always acceptable for user. This PR adds an easy way to configure this behavior.
The
RetryDeciderInterface::shouldRetry()now take the exception in parameter, in order to let decider not retrying the request when the methods should never by retried.With#38420, this code would belongs to the RetryStrategy implementation, and would return an
NeverRetryDeciderwhen method is not allowed.