- Fixed "tty input" bug where a reverse lookup request was
written to stdout.
- Cleaned up pointers in protoUnregister().
+ - Includes all squid-1.0 changes up to squid-1.0.6.
Changes to squid-1.1.alpha7:
-# From configure.in Revision: 1.23
+# From configure.in Revision: 1.24
ac_aux_dir=
for ac_dir in aux $srcdir/aux; do
if test -f $ac_dir/install-sh; then
i = _NFILE;
#else
while((j=open("/dev/null", 0)) > 0) i=j;
+ close(i); close(i-1);
+ i++;
#endif
fprintf (fopen("conftestval", "w"), "%d\n", i);
exit(0);
SQUID_UDP_SO_SNDBUF=8192
else
cat > conftest.$ac_ext <<EOF
-#line 2263 "configure"
+#line 2265 "configure"
#include "confdefs.h"
#include <sys/types.h>
SQUID_UDP_SO_RCVBUF=8192
else
cat > conftest.$ac_ext <<EOF
-#line 2299 "configure"
+#line 2301 "configure"
#include "confdefs.h"
#include <sys/types.h>
SQUID_TCP_SO_SNDBUF=8192
else
cat > conftest.$ac_ext <<EOF
-#line 2335 "configure"
+#line 2337 "configure"
#include "confdefs.h"
#include <sys/types.h>
SQUID_TCP_SO_RCVBUF=8192
else
cat > conftest.$ac_ext <<EOF
-#line 2371 "configure"
+#line 2373 "configure"
#include "confdefs.h"
#include <sys/types.h>
echo $ac_n "checking if sys_errlist is already defined""... $ac_c" 1>&6
cat > conftest.$ac_ext <<EOF
-#line 2404 "configure"
+#line 2406 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() { return 0; }
dnl
dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
dnl
-dnl $Id: configure.in,v 1.24 1996/07/20 03:39:39 wessels Exp $
+dnl $Id: configure.in,v 1.25 1996/08/12 23:37:21 wessels Exp $
dnl
dnl
dnl
AC_INIT(src/main.c)
AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.24 $)dnl
+AC_REVISION($Revision: 1.25 $)dnl
AC_PREFIX_DEFAULT(/usr/local/squid)
AC_CONFIG_AUX_DIR(aux)
i = _NFILE;
#else
while((j=open("/dev/null", 0)) > 0) i=j;
+ close(i); close(i-1);
+ i++;
#endif
fprintf (fopen("conftestval", "w"), "%d\n", i);
exit(0);
-
/*
- * $Id: comm.cc,v 1.51 1996/08/12 23:22:33 wessels Exp $
+ * $Id: comm.cc,v 1.52 1996/08/12 23:37:22 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
void comm_set_select_handler(fd, type, handler, client_data)
int fd;
unsigned int type;
- int (*handler) ();
+ PF handler;
void *client_data;
{
comm_set_select_handler_plus_timeout(fd, type, handler, client_data, 0);
void comm_set_select_handler_plus_timeout(fd, type, handler, client_data, timeout)
int fd;
unsigned int type;
- int (*handler) ();
+ PF handler;
void *client_data;
time_t timeout;
{
void comm_add_close_handler(fd, handler, data)
int fd;
- int (*handler) ();
+ PF handler;
void *data;
{
struct close_handler *new = xmalloc(sizeof(*new));
void comm_remove_close_handler(fd, handler, data)
int fd;
- int (*handler) ();
+ PF handler;
void *data;
{
struct close_handler *p, *last = NULL;
/*
- * $Id: main.cc,v 1.57 1996/07/27 07:07:43 wessels Exp $
+ * $Id: main.cc,v 1.58 1996/08/12 23:37:24 wessels Exp $
*
* DEBUG: section 1 Startup and Main Loop
* AUTHOR: Harvest Derived
if (first_time) {
stmemInit(); /* stmem must go before at least redirect */
disk_init(); /* disk_init must go before ipcache_init() */
- writePidFile(); /* write PID file */
}
ipcache_init();
fqdncache_init();
#endif
if (first_time) {
- first_time = 0;
/* module initialization */
urlInitialize();
stat_init(&CacheInfo, Config.Log.access);
if (theOutIcpConnection >= 0 && (!httpd_accel_mode || Config.Accel.withProxy))
neighbors_open(theOutIcpConnection);
+ if (first_time)
+ writePidFile(); /* write PID file */
+
squid_signal(SIGUSR1, rotate_logs, SA_RESTART);
squid_signal(SIGUSR2, sigusr2_handle, SA_RESTART);
squid_signal(SIGHUP, reconfigure, SA_RESTART);
squid_signal(SIGTERM, shut_down, SA_NODEFER | SA_RESETHAND | SA_RESTART);
squid_signal(SIGINT, shut_down, SA_NODEFER | SA_RESETHAND | SA_RESTART);
debug(1, 0, "Ready to serve requests.\n");
+ first_time = 0;
}
/*
- * $Id: store.cc,v 1.78 1996/08/12 23:22:38 wessels Exp $
+ * $Id: store.cc,v 1.79 1996/08/12 23:37:25 wessels Exp $
*
* DEBUG: section 20 Storeage Manager
* AUTHOR: Harvest Derived
int n = 0;
for (e = storeGetFirst(); e; e = storeGetNext()) {
- if ((++n & 0xFF) == 0)
+ if ((++n & 0xFF) == 0) {
getCurrentTime();
+ if (shutdown_pending || reread_pending)
+ break;
+ }
if ((n & 0xFFF) == 0)
debug(20, 2, "storeWalkThrough: %7d objects so far.\n", n);
count += proc(e, data);
/*
- * $Id: url.cc,v 1.28 1996/08/12 23:22:39 wessels Exp $
+ * $Id: url.cc,v 1.29 1996/08/12 23:37:25 wessels Exp $
*
* DEBUG: section 23 URL Parsing
* AUTHOR: Duane Wessels
protocol_t protocol = PROTO_NONE;
proto[0] = host[0] = urlpath[0] = login[0] = '\0';
+ if (strlen(url) > MAX_URL) {
+ debug(23, 0, "urlParse: URL too large (%d bytes)\n", strlen(url));
+ return NULL;
+ }
if (method == METHOD_CONNECT) {
port = CONNECT_PORT;
if (sscanf(url, "%[^:]:%d", host, &port) < 1)