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) "