From c877e270aad1ec3c283d2c3ec44492a49444d466 Mon Sep 17 00:00:00 2001 From: Michael Boquard Date: Tue, 5 Mar 2024 10:45:02 -0500 Subject: [PATCH] net: Updated retry error list Added: - EHOSTUNREACH - EHOSTDOWN - ENETRESET - ENETDOWN Fixes: #16901 Signed-off-by: Michael Boquard (cherry picked from commit 0f353614e5c081cfe87d0259f3168773f6e0c7a4) --- src/v/net/connection.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/v/net/connection.cc b/src/v/net/connection.cc index 3d63f9751957c..ff6de4a412c1b 100644 --- a/src/v/net/connection.cc +++ b/src/v/net/connection.cc @@ -16,6 +16,7 @@ #include +#include #include namespace net { @@ -55,6 +56,10 @@ bool is_reconnect_error(const std::system_error& e) { case ECONNABORTED: case EAGAIN: case EPIPE: + case EHOSTUNREACH: + case EHOSTDOWN: + case ENETRESET: + case ENETDOWN: return true; default: return false;