-static char rcsid[] = "$Id: cachemgr.cc,v 1.1 1996/02/22 06:23:53 wessels Exp $";
+static char rcsid[] = "$Id: cachemgr.cc,v 1.2 1996/02/23 05:41:20 wessels Exp $";
/*
* cachemgr.c - CGI interface to the Cache Manager.
*
printf("<HR>\n");
printf("<ADDRESS>\n");
printf("Generated %s, by %s/%s@%s\n",
- tbuf, progname, HARVEST_VERSION, getfullhostname());
+ tbuf, progname, SQUID_VERSION, getfullhostname());
printf("</ADDRESS>\n");
}
-static char rcsid[] = "$Id: dnsserver.cc,v 1.1 1996/02/22 06:23:54 wessels Exp $";
+static char rcsid[] = "$Id: dnsserver.cc,v 1.2 1996/02/23 05:41:21 wessels Exp $";
/*
* File: dnsserver.c
* Description: dnsserver process for non-blocking DNS lookup.
switch (c) {
case 'v':
case 'h':
- printf("dnsserver version %s\n", HARVEST_VERSION);
+ printf("dnsserver version %s\n", SQUID_VERSION);
exit(0);
break;
case 'd':
-static char rcsid[] = "$Id: ftp.cc,v 1.1 1996/02/22 06:23:54 wessels Exp $";
+static char rcsid[] = "$Id: ftp.cc,v 1.2 1996/02/23 05:41:22 wessels Exp $";
/*
* File: ftp.c
* Description: state machine for ftp retrieval protocol. Based on John's
210,
"Transaction Timeout",
"The Network/Remote site may be down or too slow. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
ftp_close_pipe(data->ftp_fd, data->cpid);
319,
"No Client",
"All Clients went away before tranmission is complete and object is too big to cache.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
ftp_close_pipe(data->ftp_fd, data->cpid);
305,
"Read Error.",
"Network/Remote Site is down. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
ftp_close_pipe(data->ftp_fd, data->cpid);
307,
"Client Aborted",
"Client(s) dropped connection before transmission is complete.\nObject fetching is aborted.\n",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
ftp_close_pipe(data->ftp_fd, data->cpid);
309,
"Invalid URL syntax: Cannot parse.",
"Please contact your system manager for further help.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
308,
"Cannot connect to FTP slave process",
"Please contact your system manager for further help.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
-static char rcsid[] = "$Id: gopher.cc,v 1.1 1996/02/22 06:23:54 wessels Exp $";
+static char rcsid[] = "$Id: gopher.cc,v 1.2 1996/02/23 05:41:23 wessels Exp $";
/*
* File: gopher.c
* Description: state machine for gopher retrieval protocol. Based on Anawat's
sprintf(tempMIME, "\
HTTP/1.0 200 OK Gatewaying\r\n\
Server: HarvestCache/%s\r\n\
-MIME-version: 1.0\r\n", HARVEST_VERSION);
+MIME-version: 1.0\r\n", SQUID_VERSION);
switch (data->type_id) {
203,
"Read timeout",
"Network/Remote site may be down. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
if (data->icp_page_ptr)
210,
"Transaction Timeout",
"The Network/Remote site may be down or too slow. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
if (data->icp_page_ptr)
219,
"No Client",
"All Clients went away before tranmission is complete and object is too big to cache.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
205,
"Read error",
"Network/Remote Site is down. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
207,
"Client Aborted",
"Client(s) dropped connection before transmission is complete.\nObject fetching is aborted.\n",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
if (data->conversion != NORMAL)
gopherEndHTML(data);
201,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
208,
"Invalid URL syntax: Cannot parse.",
"Contact your system adminstrator for further help.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
211,
"Cached short of file-descriptors, sorry",
"",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
202,
"DNS name lookup failure",
dns_error_message,
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
204,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
-static char rcsid[] = "$Id: http.cc,v 1.1 1996/02/22 06:23:55 wessels Exp $";
+static char rcsid[] = "$Id: http.cc,v 1.2 1996/02/23 05:41:24 wessels Exp $";
/*
* File: http.c
* Description: state machine for http retrieval protocol.
103,
"Read timeout",
"The Network/Remote site may be down. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
if (data->icp_rwd_ptr)
110,
"Transaction Timeout",
"The Network/Remote site may be down or too slow. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
if (data->icp_page_ptr) {
119,
"No Client",
"All Clients went away before tranmission is complete and object is too big to cache.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
105,
"Read error",
"Network/Remote site is down. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
}
107,
"Client Aborted",
"Client(s) dropped connection before transmission is complete.\nObject fetching is aborted.\n",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
101,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
if (strncasecmp(t, "User-Agent:", 11) == 0) {
ybuf = (char *) get_free_4k_page();
memset(ybuf, '\0', SM_PAGE_SIZE);
- sprintf(ybuf, "%s %s %s", t, HARVEST_PROXY_TEXT, HARVEST_VERSION);
+ sprintf(ybuf, "%s %s %s", t, HARVEST_PROXY_TEXT, SQUID_VERSION);
t = ybuf;
}
if (strncasecmp(t, "If-Modified-Since:", 18) == 0)
104,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
111,
"Cached short of file-descriptors, sorry",
"",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
102,
"DNS name lookup failure",
dns_error_message,
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
104,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
110,
"Invalid URL syntax: Cannot parse.",
"Contact your system administrator for further help.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
111,
"Cached short of file-descriptors, sorry",
"",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
108,
"DNS name lookup failure",
dns_error_message,
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
109,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
-static char rcsid[] = "$Id: main.cc,v 1.1 1996/02/22 06:23:55 wessels Exp $";
+static char rcsid[] = "$Id: main.cc,v 1.2 1996/02/23 05:41:25 wessels Exp $";
/*
* File: main.c
* Description: main loop for cache
while ((c = getopt(argc, argv, "vCDRVseif:a:p:u:d:m:zh?")) != -1)
switch (c) {
case 'v':
- printf("Harvest Cache: Version %s\n", HARVEST_VERSION);
+ printf("Harvest Cache: Version %s\n", SQUID_VERSION);
exit(0);
/* NOTREACHED */
case 'V':
fdstat_open(fileno(debug_log), LOG);
fd_note(fileno(debug_log), getCacheLogFile());
- debug(0, "Starting Harvest Cache (version %s)...\n", HARVEST_VERSION);
+ debug(0, "Starting Harvest Cache (version %s)...\n", SQUID_VERSION);
/* init ipcache */
ipcache_init();
struct sockaddr_in L;
struct hostent *hp = NULL;
- sprintf(buf, "cache_version HARVEST/%s\n", HARVEST_VERSION);
+ sprintf(buf, "cache_version HARVEST/%s\n", SQUID_VERSION);
strcat(databuf, buf);
sprintf(buf, "Running on %s %d %d\n",
getfullhostname(),
-static char rcsid[] = "$Id: stat.cc,v 1.1 1996/02/22 06:23:55 wessels Exp $";
+static char rcsid[] = "$Id: stat.cc,v 1.2 1996/02/23 05:41:27 wessels Exp $";
/*
* File: stat.c
* Description: stat module for object cache
storeAppend(sentry, open_bracket, (int) strlen(open_bracket));
- sprintf(line, "{Harvest Object Cache: Version %s}\n", HARVEST_VERSION);
+ sprintf(line, "{Harvest Object Cache: Version %s}\n", SQUID_VERSION);
storeAppend(sentry, line, strlen(line));
tod = mkrfc850(&cached_starttime);
-static char rcsid[] = "$Id: store.cc,v 1.1 1996/02/22 06:23:55 wessels Exp $";
+static char rcsid[] = "$Id: store.cc,v 1.2 1996/02/23 05:41:28 wessels Exp $";
/*
* File: store.c
* Description: Storage manager for the Cache
102,
"Cache Disk I/O Failure",
"",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
return 0;
-static char rcsid[] = "$Id: tools.cc,v 1.1 1996/02/22 06:23:56 wessels Exp $";
+static char rcsid[] = "$Id: tools.cc,v 1.2 1996/02/23 05:41:28 wessels Exp $";
/*
**********************************************************************
* Copyright (c) 1994, 1995. All rights reserved.
static char *dead_msg()
{
static char msg[1024];
- sprintf(msg, DEAD_MSG, HARVEST_VERSION, HARVEST_VERSION);
+ sprintf(msg, DEAD_MSG, SQUID_VERSION, SQUID_VERSION);
return msg;
}
storeWriteCleanLog();
PrintRusage(NULL, stderr);
debug(0, "Harvest Cache (Version %s): Exiting due to signal %d.\n",
- HARVEST_VERSION, sig);
+ SQUID_VERSION, sig);
exit(1);
}
syslog(LOG_ALERT, message);
fprintf(stderr, "FATAL: %s\n", message);
fprintf(stderr, "Harvest Cache (Version %s): Terminated abnormally.\n",
- HARVEST_VERSION);
+ SQUID_VERSION);
fflush(stderr);
PrintRusage(NULL, stderr);
if (debug_log != stderr) {
debug(0, "FATAL: %s\n", message);
debug(0, "Harvest Cache (Version %s): Terminated abnormally.\n",
- HARVEST_VERSION);
+ SQUID_VERSION);
}
}
-static char rcsid[] = "$Id: wais.cc,v 1.1 1996/02/22 06:23:56 wessels Exp $";
+static char rcsid[] = "$Id: wais.cc,v 1.2 1996/02/23 05:41:29 wessels Exp $";
/*
* File: wais.c
* Description: state machine for wais retrieval protocol (just open a
403,
"Read timeout",
"The Network/Remote site may be down. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_set_select_handler(fd, COMM_SELECT_READ, 0, 0);
410,
"Transaction Timeout",
"The Network/Remote site may be down or too slow. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_set_select_handler(fd, COMM_SELECT_READ | COMM_SELECT_WRITE, 0, 0);
419,
"No Client",
"All Clients went away before tranmission is complete and object is too big to cache.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
405,
"Read error",
"Network/Remote site is down. Try again later.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
}
401,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
comm_close(fd);
412,
"Configuration error. No WAIS relay host is defined.",
"",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
411,
"Cached short of file-descriptors, sorry",
"",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
402,
"DNS name lookup failure",
dns_error_message,
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS
401,
"Cannot connect to the original site",
"The remote site may be down.",
- HARVEST_VERSION,
+ SQUID_VERSION,
comm_hostname());
storeAbort(entry, tmp_error_buf);
#ifdef LOG_ERRORS