2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

adjust timeout to allow for ECN negotiation failures

This commit is contained in:
Mark Andrews 2018-12-28 15:16:04 +11:00 committed by Evan Hunt
parent f056d04eed
commit dadb924be7

View File

@ -1919,6 +1919,15 @@ fctx_query(fetchctx_t *fctx, dns_adbaddrinfo_t *addrinfo,
srtt = addrinfo->srtt;
/*
* Allow an additional second for the kernel to resend the SYN (or
* SYN without ECN in the case of stupid firewalls blocking ECN
* negotiation) over the current RTT estimate.
*/
if ((options & DNS_FETCHOPT_TCP) != 0) {
srtt += 1000000;
}
/*
* A forwarder needs to make multiple queries. Give it at least
* a second to do these in.