From: wessels <> Date: Mon, 18 Nov 1996 09:25:45 +0000 (+0000) Subject: Dont' ping siblings if REQ_HIERACHICAL is set. It might be set X-Git-Tag: SQUID_3_0_PRE1~5452 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba6001845989482278f17c00c549ac47feeeb74d;p=thirdparty%2Fsquid.git Dont' ping siblings if REQ_HIERACHICAL is set. It might be set if the URL host is beyond a firewall. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index eaf42702a9..7501e4f65d 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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);