From b091c7853909d7f13f834f90fc88ed93f678c9d4 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Mon, 22 Jul 2024 09:22:44 -0400 Subject: [PATCH] one more socket error edge case --- veilid-tools/src/network_result.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/veilid-tools/src/network_result.rs b/veilid-tools/src/network_result.rs index 5fa8f93b..0dbfed4c 100644 --- a/veilid-tools/src/network_result.rs +++ b/veilid-tools/src/network_result.rs @@ -32,6 +32,7 @@ impl IoNetworkResultExt for io::Result { Err(e) => match e.kind() { io::ErrorKind::TimedOut => Ok(NetworkResult::Timeout), io::ErrorKind::UnexpectedEof + | io::ErrorKind::BrokenPipe | io::ErrorKind::ConnectionAborted | io::ErrorKind::ConnectionRefused | io::ErrorKind::ConnectionReset @@ -51,6 +52,7 @@ impl IoNetworkResultExt for io::Result { match e.kind() { io::ErrorKind::TimedOut => Ok(NetworkResult::Timeout), io::ErrorKind::UnexpectedEof + | io::ErrorKind::BrokenPipe | io::ErrorKind::ConnectionAborted | io::ErrorKind::ConnectionRefused | io::ErrorKind::ConnectionReset => Ok(NetworkResult::NoConnection(e)),