]> 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)
committerEvan Hunt <each@isc.org>
Tue, 30 Jul 2019 23:21:49 +0000 (16:21 -0700)
lib/isc/unix/socket.c

index 1d02b987d176be8bd57198004623f39a618face8..b10868c5254e4aaafe1bbb1042cfde003e99ecbc 100644 (file)
@@ -4790,6 +4790,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
                }