]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Dont' ping siblings if REQ_HIERACHICAL is set. It might be set
authorwessels <>
Mon, 18 Nov 1996 09:25:45 +0000 (09:25 +0000)
committerwessels <>
Mon, 18 Nov 1996 09:25:45 +0000 (09:25 +0000)
if the URL host is beyond a firewall.

src/neighbors.cc

index eaf42702a99b16765fafd606f8e206e8adc17aaa..7501e4f65db55ff60aa528756e3d225fac8e4210 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: neighbors.cc,v 1.86 1996/11/13 06:52:25 wessels Exp $
+ * $Id: neighbors.cc,v 1.87 1996/11/18 02:25:45 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -439,6 +439,11 @@ neighborsUdpPing(protodispatch_data * proto)
            continue;           /* next edge */
        if (e->options & NEIGHBOR_NO_QUERY)
            continue;
+       /* the case below seems strange, but can happen if the
+        * URL host is on the other side of a firewall */
+       if (e->type == EDGE_SIBLING)
+           if (!BIT_TEST(proto->request->flags, REQ_HIERARCHICAL))
+               continue;
 
        debug(15, 4, "neighborsUdpPing: pinging cache %s for '%s'\n",
            e->host, url);