FS#77600 - [curl] Waited reuse is not used for subsequent connections

Attached to Project: Arch Linux
Opened by Akatsuki Rui (akiirui) - Tuesday, 21 February 2023, 14:54 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 21 February 2023, 15:24 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

This issue caused failure when download more than 100 crates by cargo.

Downgrade curl to 7.87, cargo works fine, or cherry-pick 821f6e2a89de8aec1c7da3c0f381b92b2b801efc can also fix this issue

Additional info:
* package version(s)

- curl 7.88.1-1

* config and/or log files etc.

[2023-02-21T06:45:03Z DEBUG cargo::ops::registry] http-debug: * Uses proxy env variable no_proxy == 'localhost,127.0.0.0/8,::1'
[2023-02-21T06:45:03Z DEBUG cargo::ops::registry] http-debug: * Uses proxy env variable https_proxy == 'http://127.0.0.1:1081/'
[2023-02-21T06:45:03Z DEBUG cargo::ops::registry] http-debug: * Found bundle for host: 0x5642948e47c0 [serially]
[2023-02-21T06:45:03Z DEBUG cargo::ops::registry] http-debug: * Server doesn't support multiplex yet, wait
[2023-02-21T06:45:03Z DEBUG cargo::ops::registry] http-debug: * No connections available.
...
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Uses proxy env variable no_proxy == 'localhost,127.0.0.0/8,::1'
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Uses proxy env variable https_proxy == 'http://127.0.0.1:1081/'
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Found bundle for host: 0x5642948e47c0 [can multiplex]
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * MAX_CONCURRENT_STREAMS reached, skip (100)
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * No more connections allowed to host: 2
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * No connections available.
...
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Uses proxy env variable no_proxy == 'localhost,127.0.0.0/8,::1'
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Uses proxy env variable https_proxy == 'http://127.0.0.1:1081/'
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Found bundle for host: 0x5642948e47c0 [can multiplex]
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * client side MAX_CONCURRENT_STREAMS reached, skip (100)
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Multiplexed connection found
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Re-using existing connection #1 with proxy 127.0.0.1
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Transfer was pending, now try another
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * [CONN-1-0] send: no filter connected
[2023-02-21T06:45:04Z DEBUG cargo::ops::registry] http-debug: * Failed sending HTTP request

* link to upstream bug report, if any

- https://github.com/curl/curl/commit/821f6e2a89de8aec1c7da3c0f381b92b2b801efc
- https://github.com/rust-lang/cargo/issues/11746

Steps to reproduce:

1. Install extra/rust
2. Remove git and registry in $CARGO_HOME
3. git clone https://github.com/Morganamilo/paru.git
4. cd paru
5. CARGO_HTTP_MULTIPLEXING=true cargo build
6. See error outputs:

error: failed to download from `https://crates.io/api/v1/crates/want/0.3.0/download`

Caused by:
[2] Failed initialization ([CONN-1-0] send: no filter connected)
This task depends upon

Closed by  Christian Hesse (eworm)
Tuesday, 21 February 2023, 15:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  curl-7.88.1-2

Loading...