1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

only build SslConnectorBuilder once (#2503)

This commit is contained in:
Rob Ede
2021-12-18 16:44:30 +00:00
committed by GitHub
parent d2b9724010
commit fb036264cc
8 changed files with 61 additions and 24 deletions

View File

@ -340,7 +340,7 @@ where
Connector::new()
.conn_lifetime(Duration::from_secs(0))
.timeout(Duration::from_millis(30000))
.ssl(builder.build())
.openssl(builder.build())
}
#[cfg(not(feature = "openssl"))]
{