to view client list.
- Stop sending ICP_OP_DENIED to clients if 95% of their
queries are denied (then they'll think we're dead).
- Write Perl script to convert squid-1.0 store to squid-1.1
structure.
+Changes to squid-1.1.beta8 ():
+
+ - Added client_db.c; keeps stats on clients, use cachemgr
+ to view client list.
+ - Stop sending ICP_OP_DENIED to clients if 95% of their
+ queries are denied (then they'll think we're dead).
+
Changes to squid-1.1.beta7 (October 14, 1996):
- Combined and renamed comm_set_select_handler() functions.
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.in,v 1.46 1996/10/13 10:04:21 wessels Exp $
+# $Id: Makefile.in,v 1.47 1996/10/14 23:45:24 wessels Exp $
#
# Uncomment and customize the following to suit your needs:
#
PROGS = squid client
UTILS = dnsserver ftpget pinger
CGIPROGS = cachemgr.cgi
-OBJS = acl.o async_io.o background.o cache_cf.o errorpage.o \
+OBJS = acl.o async_io.o background.o cache_cf.o \
+ client_db.o errorpage.o \
client_side.o comm.o debug.o disk.o dns.o \
fdstat.o filemap.o ftp.o fqdncache.o gopher.o \
hash.o http.o icmp.o icp.o ident.o ipcache.o \
/*
- * $Id: cachemgr.cc,v 1.34 1996/10/09 15:34:21 wessels Exp $
+ * $Id: cachemgr.cc,v 1.35 1996/10/14 23:45:25 wessels Exp $
*
* DEBUG: Section 0 CGI Cache Manager
* AUTHOR: Harvest Derived
INFO,
CACHED,
SERVER,
+ CLIENTS,
LOG,
PARAM,
STATS_I,
"info",
"squid.conf",
"server_list",
+ "client_list",
"log",
"parameter",
"stats/ipcache",
"Cache Information",
"Cache Configuration File",
"Cache Server List",
+ "Cache Client List",
"Cache Log",
"Cache Parameters",
"IP Cache Contents",
print_option(op, STATS_O);
print_option(op, STATS_VM);
print_option(op, SERVER);
+ print_option(op, CLIENTS);
print_option(op, STATS_I);
print_option(op, STATS_F);
print_option(op, STATS_D);
case INFO:
case CACHED:
case SERVER:
+ case CLIENTS:
case LOG:
case PARAM:
case STATS_I:
print_option(op, STATS_O);
print_option(op, STATS_VM);
print_option(op, SERVER);
+ print_option(op, CLIENTS);
print_option(op, STATS_I);
print_option(op, STATS_F);
print_option(op, STATS_D);
case INFO:
case CACHED:
case SERVER:
+ case CLIENTS:
case LOG:
case STATS_I:
case STATS_F:
case INFO:
case CACHED:
case SERVER:
+ case CLIENTS:
case LOG:
case STATS_I:
case STATS_F:
/*
- * $Id: main.cc,v 1.94 1996/10/13 09:17:13 wessels Exp $
+ * $Id: main.cc,v 1.95 1996/10/14 23:45:29 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
}
}
}
+ clientdbInit();
#if USE_ICMP
icmpOpen();
netdbInit();
/*
- * $Id: squid.h,v 1.59 1996/10/13 06:19:50 wessels Exp $
+ * $Id: squid.h,v 1.60 1996/10/14 23:45:30 wessels Exp $
*
* AUTHOR: Duane Wessels
*
#include "client_side.h"
#include "icmp.h"
#include "net_db.h"
+#include "client_db.h"
#if !HAVE_TEMPNAM
#include "tempnam.h"
/*
- * $Id: stat.cc,v 1.85 1996/10/14 21:29:32 wessels Exp $
+ * $Id: stat.cc,v 1.86 1996/10/14 23:45:31 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
meta_data.netdb_addrs * sizeof(netdbEntry) +
meta_data.netdb_hosts * sizeof(struct _net_db_name) +
#endif
+ meta_data.client_info * client_info_sz +
meta_data.misc;
}
(int) sizeof(struct _net_db_name),
(int) (meta_data.netdb_hosts * sizeof(struct _net_db_name) >> 10));
#endif
+ storeAppendPrintf(sentry, "{\t%-25.25s %7d x %4d bytes = %6d KB}\n",
+ "ClientDB Entries",
+ meta_data.client_info,
+ client_info_sz,
+ (int) (meta_data.client_info * client_info_sz >> 10));
storeAppendPrintf(sentry, "{\t%-25.25s = %6d KB}\n",
"Miscellaneous",