Skip to content

Retry if S3 returns 500 #3962

@carols10cents

Description

@carols10cents

Crates.io redirects to S3 for /download requests. Sometimes S3 returns a 500, and cargo should automatically retry.

Cargo has network retry logic, but right now it only retries if the error is "spurious".

We should tweak maybe_spurious to count 500 as something that should be retried, not sure which one of the curl errors corresponds to that or if we should just check the status code like this check does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyExperience: Easy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions