Skip to content

Commit

Permalink
don't ignore openssl connection error
Browse files Browse the repository at this point in the history
otherwise the error shows up too late in a non-terminal way whereas
the error is terminal
  • Loading branch information
nrxus committed Jan 27, 2025
1 parent 5b8b541 commit 1c013de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scylla/src/network/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,10 @@ impl Connection {
#[cfg(feature = "openssl")]
Tls::OpenSsl(ssl) => {
let mut stream = tokio_openssl::SslStream::new(ssl, stream)?;
let _pin = std::pin::Pin::new(&mut stream).connect().await;
std::pin::Pin::new(&mut stream)
.connect()
.await
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))?;
let (task, handle) = Self::router(
config,
stream,
Expand Down

0 comments on commit 1c013de

Please sign in to comment.