From a0f65db9b8cea4fb72f45833208de62c511a8e06 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 22 Oct 1997 00:40:32 +0000 Subject: [PATCH] IN ipcacheExpiredEntry() we have this goofy thing where we'll return an expired entry if it was used within the last 60 seconds. But we also must require there to be some valid addresses! --- src/ipcache.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ipcache.cc b/src/ipcache.cc index 58c05d29a6..e5a92a54ca 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -1,6 +1,6 @@ /* - * $Id: ipcache.cc,v 1.133 1997/10/21 15:59:38 wessels Exp $ + * $Id: ipcache.cc,v 1.134 1997/10/21 18:40:32 wessels Exp $ * * DEBUG: section 14 IP Cache * AUTHOR: Harvest Derived @@ -330,7 +330,8 @@ ipcacheExpiredEntry(ipcache_entry * i) return 0; if (i->status == IP_CACHED) if (squid_curtime - i->lastref < 60) - return 0; + if (i->addrs.count > 0) + return 0; return 1; } @@ -712,7 +713,7 @@ ipcache_nbgethostbyname(const char *name, IPH * handler, void *handlerData) ipcache_dnsDispatch(dnsData, i); return; } - if (NDnsServersAlloc > 0) { + if (NDnsServersAlloc) { ipcacheEnqueue(i); return; } -- 2.47.2