Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Handle Retry-After header in resources.GetRemote #14828

@bep

Description

@bep

We already have the retry logic in place, but to improve the situation on busy servers (e.g. HTTP 503 or 429) we should respect the Retry-After header, if present, when calculating nextSleep.

We still fail if the total time exeeds the configured timeout, but it would be useful to include some info about the server return Retry-After when returning the "retry timeout" error.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions