]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
reconfigure caused peer address lookups to take a long time because
authorwessels <>
Sat, 30 Jan 1999 05:17:09 +0000 (05:17 +0000)
committerwessels <>
Sat, 30 Jan 1999 05:17:09 +0000 (05:17 +0000)
we didn't queue another peerRefreshDNS event.  instead we waited for
the current, pending event, no matter how far off it was.

src/neighbors.cc

index bf3b46e61495dc753e362cc18123fd220df0f6c5..1f1be44f6e8d8854df94e55975800b1299595786 100644 (file)
@@ -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);