]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
send HTCP instead of ICP if HTCP port set
authorwessels <>
Sat, 28 Mar 1998 12:28:54 +0000 (12:28 +0000)
committerwessels <>
Sat, 28 Mar 1998 12:28:54 +0000 (12:28 +0000)
src/neighbors.cc

index 69c5f67b83233e58f6b497348150e5b1961b6066..9a6b9a5c10ad086846a33c84d3f5ce6565aba787 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: neighbors.cc,v 1.183 1998/03/28 05:09:13 wessels Exp $
+ * $Id: neighbors.cc,v 1.184 1998/03/28 05:28:54 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -442,7 +442,10 @@ neighborsUdpPing(request_t * request,
        debug(15, 3) ("neighborsUdpPing: key = '%s'\n", storeKeyText(entry->key));
        debug(15, 3) ("neighborsUdpPing: reqnum = %d\n", reqnum);
 
-       if (p->icp_port == echo_port) {
+       if (p->htcp_port > 0) {
+           debug(15, 0)("neighborsUdpPing: sending HTCP query\n");
+           htcpQuery(entry, request, p);
+       } else if (p->icp_port == echo_port) {
            debug(15, 4) ("neighborsUdpPing: Looks like a dumb cache, send DECHO ping\n");
            echo_hdr.reqnum = reqnum;
            query = icpCreateMessage(ICP_DECHO, 0, url, reqnum, 0);