From 7e9fe0c06c36f505e949cacc2bf07a55c6294f20 Mon Sep 17 00:00:00 2001 From: Lann Martin Date: Thu, 18 Jan 2024 09:05:13 -0500 Subject: [PATCH] trigger-http: Log TLS startup errors instead of propagating Signed-off-by: Lann Martin --- crates/trigger-http/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/trigger-http/src/lib.rs b/crates/trigger-http/src/lib.rs index ddabf57af..119a0ec65 100644 --- a/crates/trigger-http/src/lib.rs +++ b/crates/trigger-http/src/lib.rs @@ -344,8 +344,10 @@ impl HttpTrigger { loop { let (stream, addr) = listener.accept().await?; - let stream = acceptor.accept(stream).await?; - Self::serve_connection(self_.clone(), stream, addr); + match acceptor.accept(stream).await { + Ok(stream) => Self::serve_connection(self_.clone(), stream, addr), + Err(err) => tracing::error!(?err, "Failed to start TLS session"), + } } } }