Disable resumption
This commit is contained in:
parent
c053e4ada3
commit
2a8aba6346
8 changed files with 27 additions and 21 deletions
|
|
@ -216,11 +216,18 @@ where
|
|||
info!("Rustls backend: Mozilla WebPKI root certs used for backend connections");
|
||||
|
||||
#[cfg(not(feature = "webpki-roots"))]
|
||||
let builder = hyper_rustls::HttpsConnectorBuilder::new().with_platform_verifier();
|
||||
#[cfg(not(feature = "webpki-roots"))]
|
||||
let builder_h2 = hyper_rustls::HttpsConnectorBuilder::new().with_platform_verifier();
|
||||
#[cfg(not(feature = "webpki-roots"))]
|
||||
info!("Rustls backend: Platform verifier used for backend connections");
|
||||
let (builder, builder_h2) = {
|
||||
use rustls::{ClientConfig, client::Resumption};
|
||||
use hyper_rustls::ConfigBuilderExt;
|
||||
let mut client_config = ClientConfig::builder()
|
||||
.try_with_platform_verifier().unwrap()
|
||||
.with_no_client_auth();
|
||||
client_config.resumption = Resumption::disabled();
|
||||
let builder = hyper_rustls::HttpsConnectorBuilder::new().with_tls_config(client_config.clone());
|
||||
let builder_h2 = hyper_rustls::HttpsConnectorBuilder::new().with_tls_config(client_config);
|
||||
info!("Rustls backend: Platform verifier used for backend connections");
|
||||
(builder, builder_h2)
|
||||
};
|
||||
|
||||
let mut http = HttpConnector::new();
|
||||
http.enforce_http(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue