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

[Retry Handler] Respect retry-after: <date> in dotnet #638

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

andrueastman
Copy link
Member

@andrueastman andrueastman commented Sep 20, 2021

This PR makes an update to the retry handler to respect a possible date coming back in the Retry-After header.

In the event a date is returned, the handler will calculate the seconds to wait and wait until the time to send the request. In the event for some reason the date received is a time in the past, the retry handler will default to the exponential backoff logic.

Part of #596 for .Net

@andrueastman andrueastman self-assigned this Sep 20, 2021
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@andrueastman andrueastman marked this pull request as ready for review September 20, 2021 08:04
@andrueastman andrueastman added the Csharp Pull requests that update .net code label Sep 20, 2021
@andrueastman andrueastman added this to the TypeWriter Replacement milestone Sep 20, 2021
@andrueastman andrueastman merged commit 76a5e0e into main Sep 20, 2021
@andrueastman andrueastman deleted the andrueastman/RetryHandlerEnhancements branch September 20, 2021 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Csharp Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants