diff -cr squid-1.0.beta4/ChangeLog squid-1.0.beta5/ChangeLog *** squid-1.0.beta4/ChangeLog Thu Apr 25 16:31:16 1996 --- squid-1.0.beta5/ChangeLog Thu Apr 25 22:38:50 1996 *************** *** 116,118 **** --- 116,122 ---- end of all requests. Symptoms were "connection reset" messages. + Changes to squid-1.0.beta5: + + - Fixed cachemgr to send 'HTTP/1.0' on request so it works + with beta4 fixes to icp.c. diff -cr squid-1.0.beta4/include/version.h squid-1.0.beta5/include/version.h *** squid-1.0.beta4/include/version.h Thu Apr 25 16:31:29 1996 --- squid-1.0.beta5/include/version.h Thu Apr 25 22:40:27 1996 *************** *** 1,7 **** ! /* $Id: version.h,v 1.19.4.3 1996/04/25 23:31:29 wessels Exp $ * * SQUID_VERSION - String for version id of this distribution */ #ifndef SQUID_VERSION ! #define SQUID_VERSION "1.0.beta4" #endif --- 1,7 ---- ! /* $Id: version.h,v 1.19.4.4 1996/04/26 05:40:27 wessels Exp $ * * SQUID_VERSION - String for version id of this distribution */ #ifndef SQUID_VERSION ! #define SQUID_VERSION "1.0.beta5" #endif diff -cr squid-1.0.beta4/src/cachemgr.c squid-1.0.beta5/src/cachemgr.c *** squid-1.0.beta4/src/cachemgr.c Tue Apr 16 09:35:26 1996 --- squid-1.0.beta5/src/cachemgr.c Thu Apr 25 22:39:59 1996 *************** *** 1,27 **** ! /* $Id: cachemgr.c,v 1.7 1996/04/16 16:35:26 wessels Exp $ */ ! #include "squid.h" ! static int client_comm_connect(); #define MAX_ENTRIES 10000 ! #define INFO 0 ! #define CACHED 1 ! #define SERVER 2 ! #define LOG 3 ! #define STATS_G 4 ! #define STATS_O 5 ! #define STATS_U 6 ! #define PARAM 7 ! #define RESPT 8 ! #define SHUTDOWN 9 ! #define REFRESH 10 #ifdef REMOVE_OBJECT ! #define REMOVE 11 #endif ! #define FALSE 0 ! #define TRUE 1 typedef struct { char *name; char *val; --- 1,97 ---- ! /* $Id: cachemgr.c,v 1.7.2.1 1996/04/26 05:39:59 wessels Exp $ */ ! #include "config.h" ! #include "autoconf.h" ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include ! #include /* needs sys/time.h above it */ ! #include ! #include ! #include ! #include ! #include ! #include + #ifdef HAVE_STRING_H + #include + #endif + + #ifdef HAVE_STRINGS_H + #include + #endif + + #if HAVE_BSTRING_H + #include + #endif + + #ifdef HAVE_CRYPT_H + #include + #endif + + #if HAVE_SYS_SELECT_H + #include + #endif + + #include "util.h" + #define MAX_ENTRIES 10000 ! ! #define FALSE 0 ! #define TRUE !FALSE ! #define LF 10 ! #define CR 13 ! ! typedef enum { ! INFO, ! CACHED, ! SERVER, ! LOG, ! PARAM, ! STATS_G, ! STATS_O, ! STATS_VM, ! STATS_U, ! SHUTDOWN, ! REFRESH, #ifdef REMOVE_OBJECT ! REMOVE, #endif ! MAXOP ! } op_t; + static char *op_cmds[] = { + "info", + "squid.conf", + "server_list", + "log", + "parameter", + "stats/general", + "stats/objects", + "stats/vm_objects", + "stats/utilization", + "shutdown", + "", + #ifdef REMOVE_OBJECT + "", + #endif + "" + }; + typedef struct { char *name; char *val; *************** *** 32,39 **** char *script_name = "/cgi-bin/cachemgr.cgi"; char *progname = NULL; ! #define LF 10 ! #define CR 13 void print_trailer() { --- 102,108 ---- char *script_name = "/cgi-bin/cachemgr.cgi"; char *progname = NULL; ! static int client_comm_connect _PARAMS((int, char *, int)); void print_trailer() { *************** *** 76,84 **** printf("