Skip to content

Commit

Permalink
Merge pull request PowerDNS#13946 from omoerbeek/dnsdist-thost-unreach
Browse files Browse the repository at this point in the history
dnsdist: also handle EHOSTUNREACH as a case for reconnecting the socket
  • Loading branch information
rgacogne authored Mar 19, 2024
2 parents 8deec6d + c42df46 commit e38d6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/dnsdist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ ssize_t udpClientSendRequestToBackend(const std::shared_ptr<DownstreamState>& ba
because it's not using the same socket.
*/
if (!healthCheck) {
if (savederrno == EINVAL || savederrno == ENODEV || savederrno == ENETUNREACH || savederrno == EBADF) {
if (savederrno == EINVAL || savederrno == ENODEV || savederrno == ENETUNREACH || savederrno == EHOSTUNREACH || savederrno == EBADF) {
backend->reconnect();
}
backend->reportTimeoutOrError();
Expand Down

0 comments on commit e38d6ec

Please sign in to comment.