Skip to content

x.py fails (timeout) to download components #61611

Closed
@L117

Description

@L117

I just cloned this rust repo and attemped to build it by calling

./x.py build

It initialized submodules, started downloading rust-std and failed repeatedly:

downloading https://static.rust-lang.org/dist/2019-04-11/rust-std-beta-x86_64-unknown-linux-gnu.tar.gz
##################################################                                                                       42.3%
Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.
Throwing away 33504800 bytes
##############################################                                                                           38.9%
Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
Throwing away 30821397 bytes
##############################################                                                                           39.2%
Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.
Throwing away 30941837 bytes
###################################################                                                                      43.0%
curl: (28) Operation too slow. Less than 10 bytes/sec transferred the last 30 seconds

Waiting longer causes messages above to repeat.

It's not connection issue, because it always fails after ~30 seconds of downloading (Messages above repeat in ~2 minutes).

I also tried changing 30 to 9999 here:

"-y", "30", "-Y", "10", # timeout if speed is < 10 bytes/sec for > 30 seconds

What caused download to succeed in a few (1-2) minutes.

So I assume it's curl to blame.
curl version:

$ curl --version          
curl 7.65.0 (x86_64-pc-linux-gnu) libcurl/7.65.0 OpenSSL/1.1.1b zlib/1.2.11 libidn2/2.1.1
Release-Date: 2019-05-22
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp 
Features: AsynchDNS HTTPS-proxy IDN IPv6 Largefile libz NTLM SSL TLS-SRP UnixSockets

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions