]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use a timeout with tcp connect to we get the EINPROGRESS handling.
authorOtto <otto.moerbeek@open-xchange.com>
Wed, 20 Jan 2021 12:28:02 +0000 (13:28 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Wed, 24 Mar 2021 10:14:23 +0000 (11:14 +0100)
pdns/lwres.cc

index 96f353b4878d9d88c40eba35e29f3fd72e487660..465699b47889bc35bc6d6884109652ca58b27006 100644 (file)
@@ -334,7 +334,7 @@ LWResult::Result asyncresolve(const ComboAddress& ip, const DNSName& domain, int
 
       s.bind(local);
 
-      s.connect(ip);
+      s.connect(ip, g_networkTimeoutMsec * 1000); // needed for fastopen EINPROGRESS and better anyway than the system wide connect timeout
 
       uint16_t tlen=htons(vpacket.size());
       char *lenP=(char*)&tlen;