From: wessels <> Date: Sun, 13 Oct 1996 15:14:01 +0000 (+0000) Subject: check next_ping_time before pinging X-Git-Tag: SQUID_3_0_PRE1~5668 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8d0088cdcacb438d46fe73b6f06f4794deb4e4b;p=thirdparty%2Fsquid.git check next_ping_time before pinging --- diff --git a/src/net_db.cc b/src/net_db.cc index cef78cedd6..f984cb8ba2 100644 --- a/src/net_db.cc +++ b/src/net_db.cc @@ -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,