]> 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:02:30 +0000 (11:02 +1000)
(cherry picked from commit 91a0cb5da3ec4c8f3ab41d386912815ee59db3c1)

lib/isc/unix/socket.c

index 78c41fce286cfb16ff9bdaa14a230efbe996c567..d9a0c200470b6f320002bb56fd5c179b223bcabb 100644 (file)
@@ -4846,6 +4846,7 @@ isc_socket_connect(isc_socket_t *sock0, const 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
                }