]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
check next_ping_time before pinging
authorwessels <>
Sun, 13 Oct 1996 15:14:01 +0000 (15:14 +0000)
committerwessels <>
Sun, 13 Oct 1996 15:14:01 +0000 (15:14 +0000)
src/net_db.cc

index cef78cedd64c0a0da00090a44dddb3a03d6dca58..f984cb8ba2b4ecc8450e4a87b55e486d4cec5ad6 100644 (file)
@@ -197,6 +197,10 @@ netdbSendPing(int fdunused, ipcache_addrs * ia, void *data)
 void
 netdbPingSite(char *hostname)
 {
+    netdbEntry *n;
+    if ((n = netdbLookupHost(hostname)) != NULL)
+       if (n->next_ping_time > squid_curtime)
+           return;
     ipcache_nbgethostbyname(hostname,
        -1,
        netdbSendPing,