]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
debug traps on using dead dnsservers
authorwessels <>
Wed, 5 Feb 1997 06:18:15 +0000 (06:18 +0000)
committerwessels <>
Wed, 5 Feb 1997 06:18:15 +0000 (06:18 +0000)
src/fqdncache.cc
src/ipcache.cc

index 35c90675bec4e61d86da059ff07fe11aebd26ddc..02d52131a45e3afe8132da9e16b3f61733600ba2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: fqdncache.cc,v 1.43 1996/12/20 23:45:39 wessels Exp $
+ * $Id: fqdncache.cc,v 1.44 1997/02/04 23:18:16 wessels Exp $
  *
  * DEBUG: section 35    FQDN Cache
  * AUTHOR: Harvest Derived
@@ -657,6 +657,8 @@ static void
 fqdncache_dnsDispatch(dnsserver_t * dns, fqdncache_entry * f)
 {
     char *buf = NULL;
+    if (!BIT_TEST(dns->flags, DNS_FLAG_ALIVE))
+        debug_trap("Dispatching a dead DNS server");
     if (!fqdncacheHasPending(f)) {
        debug(35, 0, "fqdncache_dnsDispatch: skipping '%s' because no handler.\n",
            f->name);
index b58bfe86a6da8ccf1787475e7e0a4cc7d1d0abb2..a2517ba1325d0cb5b113d3baf7e06f2c1a761c6e 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ipcache.cc,v 1.99 1997/02/04 19:25:28 wessels Exp $
+ * $Id: ipcache.cc,v 1.100 1997/02/04 23:18:15 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -713,6 +713,8 @@ static void
 ipcache_dnsDispatch(dnsserver_t * dns, ipcache_entry * i)
 {
     char *buf = NULL;
+    if (!BIT_TEST(dns->flags, DNS_FLAG_ALIVE))
+       debug_trap("Dispatching a dead DNS server");
     if (!ipcacheHasPending(i)) {
        debug(14, 0, "ipcache_dnsDispatch: skipping '%s' because no handler.\n",
            i->name);