]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
handle connect() returning ETIMEDOUT on a non-blocking socket
authorMark Andrews <marka@isc.org>
Mon, 8 Jul 2019 01:32:20 +0000 (11:32 +1000)
committerMark Andrews <marka@isc.org>
Wed, 31 Jul 2019 01:03:56 +0000 (11:03 +1000)
(cherry picked from commit 91a0cb5da3ec4c8f3ab41d386912815ee59db3c1)

lib/isc/unix/socket.c

index bb4e861dc55e83cffc28920419a4200d034da988..178715de731ccef52538f401ab636e35e8187fba 100644 (file)
@@ -5938,6 +5938,7 @@ isc__socket_connect(isc_socket_t *sock0, isc_sockaddr_t *addr,
                        ERROR_MATCH(ENOBUFS, ISC_R_NORESOURCES);
                        ERROR_MATCH(EPERM, ISC_R_HOSTUNREACH);
                        ERROR_MATCH(EPIPE, ISC_R_NOTCONNECTED);
+                       ERROR_MATCH(ETIMEDOUT, ISC_R_TIMEDOUT);
                        ERROR_MATCH(ECONNRESET, ISC_R_CONNECTIONRESET);
 #undef ERROR_MATCH
                }