]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: also handle EHOSTUNRERACH as a case for reconnecting the socket 13946/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 19 Mar 2024 09:47:59 +0000 (10:47 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 19 Mar 2024 09:47:59 +0000 (10:47 +0100)
pdns/dnsdistdist/dnsdist.cc

index a73cf87c993e60aa6ebdf96fa5e283ffc7699153..36fb6ba7731ef42e5108948692fa94a2dd4f3d69 100644 (file)
@@ -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();