-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Reqwest with rustls backend is slow #1454
Comments
It wouldn't surprise me if we could improve the building time with rustls. However, it's highly recommended that you build a |
The reason of it is that The reason why can be shown using this code is that with default configuration And if we do |
There are a lot of open issues about it there, for example hyperium/hyper#3071 |
I have found that reqwest with
rustls-tls
is very slow whilenative-tls
or ureq withrustls
is ok.main.rs
:Cargo.toml
:Running using
cargo run --release
.The url provided is random test file stored on S3-compatible Yandex.Cloud storage. I will delete it after a while.
Output on MacBook Pro M1 connected to Wireguard VPN in Yandex.Cloud:
Output on AMD + Linux desktop:
Also
curl
usingtime curl $URL > /dev/null
downloads file with time comparable toureq
.So tests shown that
reqwest
onrustls
is very slow somewhyThe text was updated successfully, but these errors were encountered: