Network timeouts and freezing during cargo fetch
#12525
Labels
A-networking
Area: networking issues, curl, etc.
C-bug
Category: bug
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
I encountered an issue while running Cargo on a repository with a large number of dependencies (1k+). The problem occurs during the execution of "cargo fetch" command, where the process initially runs smoothly but eventually freezes, leading to network timeouts. This issue started to occur after migrating from rust-toolchain version 1.65 to 1.71.
The issue is consistently reproducible on CentOS 7 but also sometimes occurs on modern distributions such as Debian 12 or Ubuntu 22.04. Also I noted that the problem always appears when downloading different crates.
Steps
cargo fetch
Possible Solution(s)
No response
Notes
To mitigate this issue, you can try disabling HTTP multiplexing by setting the environment variable "CARGO_HTTP_MULTIPLEXING" to "false":
export CARGO_HTTP_MULTIPLEXING=false
Version
The text was updated successfully, but these errors were encountered: