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 <michael@redpanda.com>
(cherry picked from commit 0f35361)
  • Loading branch information
michael-redpanda authored and vbotbuildovich committed Mar 11, 2024
1 parent 794edf7 commit 7cad2ce
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 7cad2ce

Please sign in to comment.