]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/iputils.cc
Merge pull request #7685 from Habbie/dnsdist-macos
[thirdparty/pdns.git] / pdns / iputils.cc
index 8abe2873ededdeb31aeddbc1847a50f12ef0d20c..84425e66cb08514ecbacfdb92e716f266b77d91f 100644 (file)
@@ -336,7 +336,7 @@ size_t sendMsgWithTimeout(int fd, const char* buffer, size_t len, int idleTimeou
       if (errno == EINTR) {
         continue;
       }
-      else if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINPROGRESS) {
+      else if (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINPROGRESS || errno == ENOTCONN) {
         /* EINPROGRESS might happen with non blocking socket,
            especially with TCP Fast Open */
         if (totalTimeout <= 0 && idleTimeout <= 0) {