From e5496f4261e23125ec7dde40f923f9494e8ed596 Mon Sep 17 00:00:00 2001 From: Otto Date: Wed, 20 Jan 2021 13:28:02 +0100 Subject: [PATCH] Use a timeout with tcp connect to we get the EINPROGRESS handling. --- pdns/lwres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 96f353b487..465699b478 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -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; -- 2.47.2