From 176ae152c7f08461608a83a327338d6c3f899df2 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 28 Mar 1998 12:28:54 +0000 Subject: [PATCH] send HTCP instead of ICP if HTCP port set --- src/neighbors.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/neighbors.cc b/src/neighbors.cc index 69c5f67b83..9a6b9a5c10 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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); -- 2.47.3