From 814d95899b0ffd281ec72b450e41a48cdbb98cd4 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Thu, 22 Feb 2024 12:05:10 +1300 Subject: [PATCH] Don't penalize I/O errors --- chorus-bin/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chorus-bin/src/main.rs b/chorus-bin/src/main.rs index 42e46a2..3f690c5 100644 --- a/chorus-bin/src/main.rs +++ b/chorus-bin/src/main.rs @@ -319,6 +319,11 @@ async fn handle_http_request( session_exit = SessionExit::Timeout; msg = "Timed Out (with no subscriptions)"; } + ChorusError::Io(_) => { + // Usually "Connection reset by peer" but any I/O error + // isn't a big deal. + msg = "Reset"; + } _ => { log::error!(target: "Client", "{}: {}", peer, e); session_exit = SessionExit::ErrorExit;