Skip to content

Commit cc05033

Browse files
authored
Update sqlx-core/src/net/tls/tls_native_tls.rs
1 parent 3eec5eb commit cc05033

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sqlx-core/src/net/tls/tls_native_tls.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ pub async fn handshake<S: Socket>(
6262
builder.identity(identity);
6363
}
6464

65+
// The openssl TlsConnector synchronously loads certificates from files.
66+
// Loading these files can block for tens of milliseconds.
6567
let connector = rt::spawn_blocking(move || builder.build())
6668
.await
6769
.map_err(Error::tls)?;

0 commit comments

Comments
 (0)