Skip to content

Commit

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

[v23.3.x] net: Added EHOSTUNREACH to retry list
  • Loading branch information
michael-redpanda committed Mar 11, 2024
2 parents 4d7ee84 + 7cad2ce commit a46ba2c
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 @@ -17,6 +17,7 @@
#include <seastar/core/future.hh>
#include <seastar/net/tls.hh>

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

namespace net {
Expand Down Expand Up @@ -53,6 +54,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 a46ba2c

Please sign in to comment.