Skip to content

Commit

Permalink
net: Updated retry error list
Browse files Browse the repository at this point in the history
Added:
- EHOSTUNREACH
- EHOSTDOWN
- ENETRESET
- ENETDOWN

Fixes: #16901

Signed-off-by: Michael Boquard <[email protected]>
(cherry picked from commit 0f35361)
  • Loading branch information
michael-redpanda authored and vbotbuildovich committed Mar 11, 2024
1 parent 3805bc4 commit c877e27
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/v/net/connection.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <seastar/core/future.hh>

#include <asm-generic/errno.h>
#include <gnutls/gnutls.h>

namespace net {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit c877e27

Please sign in to comment.