rust-lang / rust-lang/rustup

increase rustup fetch `default retries` and `default timeout`

Open
#3,486 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Problem you are trying to solve

Sometimes, got operation timed out: operation timed out.

Seems like static.rust-lang.org connection sometimes not very good.

related

Solution you'd like

There are 3 related isssues.

I think, make sense to increase rustup fetch default retries and default timeout.

And add env variable, to let user overwrite them.

https://rust-lang.github.io/rustup/environment-variables.html

Notes

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with rustup's fetch implementation and the three related issues to understand the current retry and timeout defaults. Read the environment-variables documentation page to see how user overrides are documented. Done means the defaults are increased, environment-variable overrides are supported, and the relevant behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.