From: wessels <> Date: Sat, 30 Jan 1999 05:17:09 +0000 (+0000) Subject: reconfigure caused peer address lookups to take a long time because X-Git-Tag: SQUID_3_0_PRE1~2323 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73cb7e3ad3cc5a5c82a9b565ed15dfd80021d822;p=thirdparty%2Fsquid.git reconfigure caused peer address lookups to take a long time because we didn't queue another peerRefreshDNS event. instead we waited for the current, pending event, no matter how far off it was. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index bf3b46e614..1f1be44f6e 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,6 +1,6 @@ /* - * $Id: neighbors.cc,v 1.268 1999/01/29 21:28:15 wessels Exp $ + * $Id: neighbors.cc,v 1.269 1999/01/29 22:17:09 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -956,7 +956,7 @@ peerRefreshDNS(void *data) { peer *p = NULL; if (eventFind(peerRefreshDNS, NULL)) - return; + eventDelete(peerRefreshDNS, NULL); if (!data && 0 == stat5minClientRequests()) { /* no recent client traffic, wait a bit */ eventAddIsh("peerRefreshDNS", peerRefreshDNS, NULL, 180.0, 1);