From 89724f4a58c9e0fe39d754603720e462fd1d8d3a Mon Sep 17 00:00:00 2001 From: evoskuil Date: Fri, 25 Oct 2024 13:02:30 -0400 Subject: [PATCH] No log error::connect_failed on send with peer drop (linux). --- src/net/proxy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/proxy.cpp b/src/net/proxy.cpp index 9e4f7af9f..a4a9be991 100644 --- a/src/net/proxy.cpp +++ b/src/net/proxy.cpp @@ -410,7 +410,9 @@ void proxy::handle_write(const code& ec, size_t, if (ec) { - if (ec != error::peer_disconnect && ec != error::operation_canceled) + // Linux reports error::connect_failed when peer drops here. + if (ec != error::peer_disconnect && ec != error::operation_canceled && + ec != error::connect_failed) { LOGF("Send failure " << heading::get_command(*payload) << " to [" << authority() << "] (" << payload->size() << " bytes) "