Skip to content

Commit

Permalink
Merge pull request #16996 from vbotbuildovich/backport-pr-16902-v23.2…
Browse files Browse the repository at this point in the history
….x-453

[v23.2.x] net: Added EHOSTUNREACH to retry list
  • Loading branch information
michael-redpanda authored Mar 11, 2024
2 parents 3805bc4 + c877e27 commit dd8cee2
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 dd8cee2

Please sign in to comment.