From: hno <> Date: Sun, 4 Apr 2004 20:36:58 +0000 (+0000) Subject: Bug #851: DNS retransmits too often X-Git-Tag: SQUID_3_0_PRE4~1111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da0c4437b6be9e81e79092290115b93d06ad467b;p=thirdparty%2Fsquid.git Bug #851: DNS retransmits too often Correct the DNS retransmission timer to double per attempt. --- diff --git a/src/dns_internal.cc b/src/dns_internal.cc index fc45e3199a..48356930a4 100644 --- a/src/dns_internal.cc +++ b/src/dns_internal.cc @@ -1,6 +1,6 @@ /* - * $Id: dns_internal.cc,v 1.61 2004/04/04 14:31:05 hno Exp $ + * $Id: dns_internal.cc,v 1.62 2004/04/04 14:36:58 hno Exp $ * * DEBUG: section 78 DNS lookups; interacts with lib/rfc1035.c * AUTHOR: Duane Wessels @@ -706,7 +706,7 @@ idnsCheckQueue(void *unused) q = (idns_query *)n->data; - if (tvSubDsec(q->sent_t, current_time) < Config.Timeout.idns_retransmit * (1 << q->nsends % nns)) + if (tvSubDsec(q->sent_t, current_time) < Config.Timeout.idns_retransmit * (1 << (q->nsends - 1) % nns)) break; debug(78, 3) ("idnsCheckQueue: ID %#04x timeout\n",