seanmonstar / reqwest

An easy and powerful Rust HTTP Client
https://docs.rs/reqwest
Apache License 2.0
9.66k stars 1.09k forks source link

rustup download times out when running in Wine #2158

Open djc opened 6 months ago

djc commented 6 months ago

Original issue: https://github.com/rust-lang/rustup/issues/3689.

rustup has two download backends, one based on curl and one based on reqwest:

https://github.com/rust-lang/rustup/blob/master/download/src/lib.rs

(Right now, the curl-based backend is the default. We'd like to switch that to rustls in the future.)

valaphee commented 3 months ago

When connecting to static.rust-lang.org I just get the Headers printed in the simple example.

There is also a different issue I noticed with Wine and their PKI (OS Error -2146762482 / 0x800B010E); google.com on the other hand just works fine.

valaphee commented 3 months ago

Commenting Cryptography::CertVerifyCertificateChainPolicy out in schannel-rs seems to get it working. The error code means: The revocation process could not continue - the certificate(s) could not be checked.