-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cargo build --verbose stuck when add rand = "0.3.0" in Cargo.toml. #3173
Comments
Interesting! Can you try running with |
my Internet speed was too slow that time sorry for your time |
But it did take too, too long in my case. Around 5-6 minutes. -.- |
I am seeing the same issue, my internet is pretty quick (50Mb), but Maybe this issue should be reopened. |
@ankush981 @kuchaguangjie do you know how to reproduce the issue? Is there something I can do locally to reproduce this? If not, could you try attaching a debugger to Cargo as it's running to see where it's at? |
After, trying for many times, it succeed, here is the console output on my Linux.
It did report network slow from the output, but actually I got a very quick network. But, the other guy is not from my area. So, I am not sure what happened to him. From the output, it says 10byte/sec for 30 seconds might cause a timeout, is that correct? Maybe that's the reason to cause it failed. I think there should not put such a limitation, or at least let it configurable, and give tips on first time out, not after 28 times trying, that would be at least (30 second * 28) = 14 minutes, if I understand the output correctly. Thanks. |
Oh so crate downloads actually come directly from S3 right now (like directly from the bucket, no CDN), so that may be why it's a slow connection (is that blocked by default in China?) Right now the intention is that if no bytes have been received in 30s then the connection is terminated, but the logic may not be right? |
@alexcrichton I guess the connection between China and the S3 is not stable. Thanks. |
@kuchaguangjie can you try the timeout configuration here? If that doesn't work we may have forgotten a location! |
@alexcrichton Thanks, I didn't notice there is such a configuration, I would try to config the timeout in |
@alexcrichton Hey, at the beginning of weekend, I got some time to check this issue. As mentioned in previous comment, I just used
Once the proxy is setup, the cargo download speed is very fast, following is an example output:
So, I guess the slow speed to download via cargo in China is caused by GFW, and it could be resolved using Thus, the issue is not caused by cargo or github, maybe the post could be closed. BWT, the config file of cargo is really simple & easy to use, nice job! Thanks. |
I'm in India and have a 16 Mbps connection, with no restrictions or regulations. This time I uninstalled Rust, installed it again, and again tried to build the project. It built the new crate after a wait of a few seconds (comparable to |
Alas :( I see this as "Cargo really needs more progress bars" or something like that then! |
Sounds like this issue is resolved for now, but the longer term issues are:
Thank you! |
[package]
name = "guessing_game"
version = "0.1.0"
authors = ["grv07"]
[dependencies]
rand = "0.3.0"
when run >> cargo build --verbose
it just show me
Updating registry
https://github.com/rust-lang/crates.io-index
and wait ....
The text was updated successfully, but these errors were encountered: