'info' cache manager page.
<article>
<title>Squid 3.0 release notes</title>
<author>Squid Developers</author>
-<date>$Id: release-3.0.sgml,v 1.10 2003/07/15 20:45:36 wessels Exp $</date>
+<date>$Id: release-3.0.sgml,v 1.11 2003/07/17 22:22:49 wessels Exp $</date>
<abstract>
This document contains the release notes for version 3.0 of Squid.
<item>external_acl extended with soft timeouts
<item>external_acl can optionally return information to be logged in access.log
<item>Requests denied due to 'http_reply_access' are now logged with TCP_DENIED_REPLY.
+ <item>Added counters for HTCP messages sent and received, reported
+ in 'info' cache manager page.
</itemize>
<sect>Changes to squid.conf
/*
- * $Id: htcp.cc,v 1.54 2003/07/15 06:50:42 robertc Exp $
+ * $Id: htcp.cc,v 1.55 2003/07/17 22:22:53 wessels Exp $
*
* DEBUG: section 31 Hypertext Caching Protocol
* AUTHOR: Duane Wesssels
if (x < 0)
debug(31, 0) ("htcpSend: FD %d sendto: %s\n", htcpOutSocket, xstrerror());
+ else
+ statCounter.htcp.pkts_sent++;
}
/*
len = comm_udp_recvfrom(fd, buf, 8192, 0, (struct sockaddr *) &from, &flen);
debug(31, 3) ("htcpRecv: FD %d, %d bytes from %s:%d\n",
fd, len, inet_ntoa(from.sin_addr), ntohs(from.sin_port));
+
+ if (len)
+ statCounter.htcp.pkts_recv++;
+
htcpHandle(buf, len, &from);
+
commSetSelect(fd, COMM_SELECT_READ, htcpRecv, NULL, 0);
}
/*
- * $Id: stat.cc,v 1.378 2003/07/11 01:40:37 robertc Exp $
+ * $Id: stat.cc,v 1.379 2003/07/17 22:22:53 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
storeAppendPrintf(sentry, "\tNumber of queued ICP replies:\t%u\n",
statCounter.icp.replies_queued);
+#if USE_HTCP
+
+ storeAppendPrintf(sentry, "\tNumber of HTCP messages received:\t%u\n",
+ statCounter.htcp.pkts_recv);
+
+ storeAppendPrintf(sentry, "\tNumber of HTCP messages sent:\t%u\n",
+ statCounter.htcp.pkts_sent);
+
+#endif
+
storeAppendPrintf(sentry, "\tRequest failure ratio:\t%5.2f\n",
request_failure_ratio);
/*
- * $Id: structs.h,v 1.474 2003/07/15 11:33:22 robertc Exp $
+ * $Id: structs.h,v 1.475 2003/07/17 22:22:53 wessels Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
icp;
+ struct
+ {
+ int pkts_sent;
+ int pkts_recv;
+ }
+
+ htcp;
+
struct
{
int requests;