Skip to content
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

Re-enable rustls #701

Closed
wants to merge 11 commits into from
4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -78,9 +78,9 @@ native-tls = { version = "0.2", optional = true }
tokio-tls = { version = "0.3.0", optional = true }

# rustls-tls
hyper-rustls = { version = "=0.18.0-alpha.2", optional = true }
hyper-rustls = { version = "=0.18.0", optional = true }
MaikKlein marked this conversation as resolved.
Show resolved Hide resolved
rustls = { version = "0.16", features = ["dangerous_configuration"], optional = true }
tokio-rustls = { version = "=0.12.0-alpha.5", optional = true }
tokio-rustls = { version = "=0.12.0", optional = true }
MaikKlein marked this conversation as resolved.
Show resolved Hide resolved
webpki-roots = { version = "0.17", optional = true }

## blocking
Expand Down
2 changes: 1 addition & 1 deletion src/connect.rs
Expand Up @@ -244,7 +244,7 @@ impl Connector {
// Disable Nagle's algorithm for TLS handshake
//
// https://www.openssl.org/docs/man1.1.1/man3/SSL_connect.html#NOTES
http.set_nodelay(self.nodelay || (dst.scheme() == "https"));
http.set_nodelay(self.no_delay || (dst.scheme() == Some(&Scheme::HTTPS)));

let http = hyper_rustls::HttpsConnector::from((http, tls.clone()));
let io = http.connect(dst).await?;
Expand Down