]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
branch 2.2 merge
authorwessels <>
Fri, 23 Apr 1999 08:57:11 +0000 (08:57 +0000)
committerwessels <>
Fri, 23 Apr 1999 08:57:11 +0000 (08:57 +0000)
34 files changed:
ChangeLog
configure
configure.in
lib/safe_inet_addr.c
src/HttpReply.cc
src/access_log.cc
src/acl.cc
src/cache_cf.cc
src/cf.data.pre
src/comm.cc
src/errorpage.cc
src/forward.cc
src/ftp.cc
src/main.cc
src/mime.cc
src/neighbors.cc
src/net_db.cc
src/peer_select.cc
src/pinger.cc
src/protos.h
src/snmp_agent.cc
src/squid.h
src/ssl.cc
src/stat.cc
src/store.cc
src/store_client.cc
src/store_dir.cc
src/store_key_md5.cc
src/structs.h
src/tools.cc
src/tunnel.cc
src/unlinkd.cc
src/url.cc
src/urn.cc

index 3cd3a40510ecf99c52b4dc5a6dfb237a3203253f..ea627a705c23d2dca0a156ad94e99cacc0434ec5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,4 @@
-Changes to Squid-2.2 ():
+Changes to Squid-2.2 (April 19, 1999):
 
        - Removed all SNMP specific ACL code
          SNMP now uses generic squid ACL's
@@ -145,6 +145,37 @@ Changes to Squid-2.2 ():
        - Fixed a "F->flags.open" assertion for aborted FTP PUT's.
        - Fixed a (double) cast problem that caused statAvgTick()
          events to be added as fast as possible.
+       - Changed httpPacked304Reply() to not include the Content-Length
+         header for 304 replies that Squid generates.  We used to
+         include the length of the cached object, and this broke
+         persistent connections.
+
+       2.2.STABLE2:
+
+       - Fixed configure bug for statvfs() checks.  Configure reports
+         "test: =: unary operator expected" or similar because an
+         unquoted variable is not defined.
+       - Fixed aclDestroyAcls() assertion because some ACL types
+         are not listed in the switch statement.  Occurs for
+         srcdom_regex and dstdom_regex ACL types during reconfigure.
+       - Typo "applicatoin" in src/mime.conf
+       - The unlinkd daemon never saw the USE_TRUNCATE_NOT_UNLINK
+         #define because it didn't include squid.h.
+       - Fixed commRetryFD() when bind() fails.   commRetryFD was
+         closing the filedescriptor, but it is the upper layer's
+         job to close it.
+       - Changed configure's "maximum number of filedescriptors"
+         detection to only use getrlimit() for Linux.  On AIX,
+         getrlimit returns RLIM_INFINITY.
+       - Fixed snmpInit() nesting bug.
+       - Fixed a bug with peerGetSomeParent().  It was adding
+         a parent to the FwdServers list, regardless of the
+         ps->direct value.  This could cause every request to
+         go to a parent even when always_direct is used.
+       - Changed fwdServerClosed() to rotate the "forward servers"
+         list when a connection establishment fails.  Otherwise
+         it always kept trying to connect to the first server
+         int the list.
 
 Changes to Squid-2.1 (November 16, 1998):
 
index bc22d79839a0d8b764cbd29de80e7ac49f433501..787cb7901ad85f7ec6dc7f5a2bfbed4b8430b408 100755 (executable)
--- a/configure
+++ b/configure
@@ -591,7 +591,7 @@ fi
 
 
 
-# From configure.in Revision: 1.169 
+# From configure.in Revision: 1.170 
 ac_aux_dir=
 for ac_dir in cfgaux $srcdir/cfgaux; do
   if test -f $ac_dir/install-sh; then
@@ -4774,12 +4774,12 @@ else
 fi
 rm -f conftest*
 echo "$ac_t""$ac_cv_func_statvfs" 1>&6
-fi
-if test $ac_cv_func_statvfs = "yes" ; then
+if test "$ac_cv_func_statvfs" = "yes" ; then
   cat >> confdefs.h <<\EOF
 #define HAVE_STATVFS 1
 EOF
 
+fi
 fi
 
 echo $ac_n "checking for _res.nsaddr_list""... $ac_c" 1>&6
index c56cb56a108026aaba19f1cf71273d097c8a6572..21195619878a2e620ff255fd16ef97758fcdf1ae 100644 (file)
@@ -3,13 +3,13 @@ dnl  Configuration input file for Squid
 dnl
 dnl  Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9)
 dnl
-dnl  $Id: configure.in,v 1.170 1999/04/21 03:51:55 wessels Exp $
+dnl  $Id: configure.in,v 1.171 1999/04/23 02:57:14 wessels Exp $
 dnl
 dnl
 dnl
 AC_INIT(src/main.c)
 AC_CONFIG_HEADER(include/autoconf.h)
-AC_REVISION($Revision: 1.170 $)dnl
+AC_REVISION($Revision: 1.171 $)dnl
 AC_PREFIX_DEFAULT(/usr/local/squid)
 AC_CONFIG_AUX_DIR(cfgaux)
 
@@ -1291,10 +1291,10 @@ statvfs("/tmp", &sfs);
   ac_cv_func_statvfs=yes,
   ac_cv_func_statvfs=no)
 AC_MSG_RESULT($ac_cv_func_statvfs)
-fi
-if test $ac_cv_func_statvfs = "yes" ; then
+if test "$ac_cv_func_statvfs" = "yes" ; then
   AC_DEFINE(HAVE_STATVFS)
 fi
+fi
 
 AC_CACHE_CHECK(for _res.nsaddr_list, ac_cv_have_res_nsaddr_list,
 AC_TRY_COMPILE([
index 4af8c9133567d024ea175ac81ab26237f0ce2f3e..bce337605abfe50adba4c38077b77d04b1165c80 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: safe_inet_addr.c,v 1.8 1998/09/23 17:16:12 wessels Exp $
+ * $Id: safe_inet_addr.c,v 1.9 1999/04/23 02:57:15 wessels Exp $
  */
 
 #include "config.h"
@@ -35,7 +35,18 @@ safe_inet_addr(const char *buf, struct in_addr *addr)
     int a1 = 0, a2 = 0, a3 = 0, a4 = 0;
     struct in_addr A;
     char x;
+#if _SQUID_HPUX_
+    /*
+     * MIYOSHI Tsutomu <mijosxi@ike.tottori-u.ac.jp> says scanning 'buf'
+     * causes a bus error on hppa1.1-hp-hpux9.07, so we
+     * have a broad hack for all HP systems.
+     */
+    static char buftmp[32];
+    snprintf(buftmp, 32, "%s", buf);
+    if (sscanf(buftmp, "%d.%d.%d.%d%c", &a1, &a2, &a3, &a4, &x) != 4)
+#else
     if (sscanf(buf, "%d.%d.%d.%d%c", &a1, &a2, &a3, &a4, &x) != 4)
+#endif
        return 0;
     if (a1 < 0 || a1 > 255)
        return 0;
index 5ef37cd6de69df7278a7d80bcab30ff3439e5b17..21ff9430b9cc879f186e22cbda8632a87d6b1cdc 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpReply.cc,v 1.35 1999/01/22 19:07:00 glenn Exp $
+ * $Id: HttpReply.cc,v 1.36 1999/04/23 02:57:16 wessels Exp $
  *
  * DEBUG: section 58    HTTP Reply (Response)
  * AUTHOR: Alex Rousskov
@@ -198,7 +198,7 @@ MemBuf
 httpPacked304Reply(const HttpReply * rep)
 {
     static const http_hdr_type ImsEntries[] =
-    {HDR_DATE, HDR_CONTENT_LENGTH, HDR_CONTENT_TYPE, HDR_EXPIRES, HDR_LAST_MODIFIED, /* eof */ HDR_OTHER};
+    {HDR_DATE, HDR_CONTENT_TYPE, HDR_EXPIRES, HDR_LAST_MODIFIED, /* eof */ HDR_OTHER};
     int t;
     MemBuf mb;
     Packer p;
index 334d571dec9d106c407e8c6b6ad031185e5fde51..346e26bc1b4dbe2d8672b3d979fffece50559263 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: access_log.cc,v 1.49 1999/01/29 18:31:17 wessels Exp $
+ * $Id: access_log.cc,v 1.50 1999/04/23 02:57:16 wessels Exp $
  *
  * DEBUG: section 46    Access Log
  * AUTHOR: Duane Wessels
@@ -219,7 +219,7 @@ accessLogOpen(const char *fname)
     LogfileFD = file_open(LogfileName, O_WRONLY | O_CREAT, NULL, NULL, NULL);
     if (LogfileFD == DISK_ERROR) {
        debug(50, 0) ("%s: %s\n", LogfileName, xstrerror());
-       fatal("Cannot open logfile.");
+       fatalf("Cannot open %s: %s", LogfileName, xstrerror());
     }
     LogfileStatus = LOG_ENABLE;
 }
@@ -327,7 +327,7 @@ accessLogRotate(void)
     if (LogfileFD == DISK_ERROR) {
        debug(46, 0) ("accessLogRotate: Cannot open logfile: %s\n", fname);
        LogfileStatus = LOG_DISABLE;
-       fatal("Cannot open logfile.");
+       fatalf("Cannot open %s: %s", fname, xstrerror());
     }
 }
 
index cb9f26a90ab95b965e31e890d034019cb5f64b73..6ff02a1f4774d213d989d90d41a06bab0821b5b8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.200 1999/04/15 06:15:43 wessels Exp $
+ * $Id: acl.cc,v 1.201 1999/04/23 02:57:17 wessels Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -693,6 +693,7 @@ aclParseAclLine(acl ** head)
        break;
     case ACL_URL_REGEX:
     case ACL_URLPATH_REGEX:
+    case ACL_BROWSER:
     case ACL_SRC_DOM_REGEX:
     case ACL_DST_DOM_REGEX:
        aclParseRegexList(&A->data);
@@ -716,9 +717,6 @@ aclParseAclLine(acl ** head)
     case ACL_METHOD:
        aclParseMethodList(&A->data);
        break;
-    case ACL_BROWSER:
-       aclParseRegexList(&A->data);
-       break;
     case ACL_PROXY_AUTH:
        aclParseWordList(&A->data);
        if (!proxy_auth_cache) {
@@ -744,7 +742,7 @@ aclParseAclLine(acl ** head)
     }
     /*
      * Clear AclMatchedName from our temporary hack
-    */
+     */
     AclMatchedName = NULL;     /* ugly */
     if (!new_acl)
        return;
@@ -1795,15 +1793,16 @@ aclDestroyAcls(acl ** head)
            break;
        case ACL_URL_REGEX:
        case ACL_URLPATH_REGEX:
+       case ACL_BROWSER:
        case ACL_SRC_DOM_REGEX:
        case ACL_DST_DOM_REGEX:
-       case ACL_BROWSER:
            aclDestroyRegexList(a->data);
            break;
        case ACL_PROTO:
        case ACL_METHOD:
        case ACL_SRC_ASN:
        case ACL_DST_ASN:
+       case ACL_NETDB_SRC_RTT:
            intlistDestroy((intlist **) & a->data);
            break;
        case ACL_URL_PORT:
@@ -1811,7 +1810,7 @@ aclDestroyAcls(acl ** head)
            break;
        case ACL_NONE:
        default:
-           assert(0);
+           debug(28,1)("aclDestroyAcls: no case for ACL type %d\n", a->type);
            break;
        }
        safe_free(a->cfgline);
@@ -2118,6 +2117,8 @@ aclDumpGeneric(const acl * a)
        break;
     case ACL_SRC_DOMAIN:
     case ACL_DST_DOMAIN:
+       return aclDumpDomainList(a->data);
+       break;
 #if SQUID_SNMP
     case ACL_SNMP_COMMUNITY:
 #endif
@@ -2125,7 +2126,7 @@ aclDumpGeneric(const acl * a)
     case ACL_IDENT:
 #endif
     case ACL_PROXY_AUTH:
-       return aclDumpDomainList(a->data);
+       return wordlistDup(a->data);
        break;
     case ACL_TIME:
        return aclDumpTimeSpecList(a->data);
@@ -2133,6 +2134,8 @@ aclDumpGeneric(const acl * a)
     case ACL_URL_REGEX:
     case ACL_URLPATH_REGEX:
     case ACL_BROWSER:
+    case ACL_SRC_DOM_REGEX:
+    case ACL_DST_DOM_REGEX:
        return aclDumpRegexList(a->data);
        break;
     case ACL_SRC_ASN:
@@ -2155,6 +2158,7 @@ aclDumpGeneric(const acl * a)
 #endif
     case ACL_NONE:
     default:
+       debug(28, 1) ("aclDumpGeneric: no case for ACL type %d\n", a->type);
        break;
     }
     return NULL;
index 62c6889c3c8393e740671b7c731c42a7cbccf357..bce0281d608a04656386023ffe7ebbafc5d917a2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.326 1999/04/15 06:15:45 wessels Exp $
+ * $Id: cache_cf.cc,v 1.327 1999/04/23 02:57:18 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -118,6 +118,17 @@ wordlistCat(const wordlist * w, MemBuf * mb)
     }
 }
 
+wordlist *
+wordlistDup(const wordlist * w)
+{
+    wordlist *D = NULL;
+    while (NULL != w) {
+       wordlistAdd(&D, w->key);
+       w = w->next;
+    }
+    return D;
+}
+
 void
 intlistDestroy(intlist ** list)
 {
index 829cfe5dc5a3bb7531d68be2e88bd88f79722f77..f41a913065af9a17c27905342f8fcb230c9c7ff1 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.147 1999/04/15 06:15:47 wessels Exp $
+# $Id: cf.data.pre,v 1.148 1999/04/23 02:57:19 wessels Exp $
 #
 #
 # SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -35,8 +35,8 @@ COMMENT_START
        ------------------
 
        This is the default Squid configuration file. You may wish
-       to look at http://cache.is.co.za/squid/ for documentation,
-       or the Squid home page (http://squid.nlanr.net/) for the FAQ.
+       to look at the Squid home page (http://squid.nlanr.net/)
+       for the FAQ and other documentation.
 
        The default Squid config file shows what the defaults for
        various options happen to be.  If you don't need to change the
@@ -92,6 +92,8 @@ DOC_START
        and from neighbor caches.  Default is 4827.  To disable use
        "0".
 
+       To enable this option, you must use --enable-htcp with the
+       configure script.
 htcp_port 4827
 DOC_END
 
@@ -777,6 +779,9 @@ DOC_START
        acl ident_aware_hosts src 198.168.1.0/255.255.255.0
        ident_lookup_access allow ident_aware_hosts
        ident_lookup_access deny all
+
+       This option may be disabled by using --disable-ident with
+       the configure script.
 ident_lookup_access deny all
 DOC_END
 
@@ -1097,8 +1102,8 @@ DOC_START
        description of Squid's refresh algorithm.  Basically a
        cached object is: (the order is changed from 1.1.X)
 
-               STALE if age > max
                FRESH if expires < now, else STALE
+               STALE if age > max
                FRESH if lm-factor < percent, else STALE
                FRESH if age < min
                else STALE
@@ -1108,7 +1113,9 @@ DOC_START
        match, then the default will be used.
 
 Default:
-refresh_pattern        .       0 20% 4320
+refresh_pattern                ^ftp:           1440    20%     10080
+refresh_pattern                ^gopher:        1440    0%      1440
+refresh_pattern        .               0       20%     4320
 DOC_END
 
 
@@ -1371,6 +1378,9 @@ DOC_START
        and you enabled 'ident_lookup', then you might be susceptible
        to denial-of-service by having many ident requests going at
        once.
+
+       This option may be disabled by using --disable-ident with
+       the configure script.
 ident_timeout 10 seconds
 DOC_END
 
@@ -2202,6 +2212,8 @@ DOC_START
        
        see also refresh_pattern for a more selective approach.
 
+       This option may be disabled by using --disable-http-violations
+       with the configure script.
 reload_into_ims off
 DOC_END
 
@@ -2500,6 +2512,8 @@ DOC_START
        if you have one class 2 delay pool and one class 3 delays pool, you
        have a total of 2 delay pools.
 
+       To enable this option, you must use --enable-delay-pools with the
+       configure script.
 delay_pools 0
 DOC_END
 
index b3aab7c3163dd722a50f13b8cd931c3c46b57ed0..5558c1875e8c15c4d135881476db4d9424e3c651 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.299 1999/01/18 22:23:32 wessels Exp $
+ * $Id: comm.cc,v 1.300 1999/04/23 02:57:20 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -325,7 +325,6 @@ commResetFD(ConnectStateData * cs)
     commSetCloseOnExec(cs->fd);
     if (Config.Addrs.tcp_outgoing.s_addr != no_addr.s_addr) {
        if (commBind(cs->fd, Config.Addrs.tcp_outgoing, 0) != COMM_OK) {
-           comm_close(cs->fd);
            return 0;
        }
     }
index fa1989032f2fdc6f4c6ef33e8257158567cece3d..fd6c610d1189d949e28fb6d8f2803b3378e5d65c 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: errorpage.cc,v 1.148 1999/01/29 21:01:06 wessels Exp $
+ * $Id: errorpage.cc,v 1.149 1999/04/23 02:57:21 wessels Exp $
  *
  * DEBUG: section 4     Error Generation
  * AUTHOR: Duane Wessels
@@ -546,7 +546,7 @@ errorConvert(char token, ErrorState * err)
        p = "%";
        break;
     default:
-       p = "%UNKNOWN%";
+       memBufPrintf(&mb, "%%%c", token);
        break;
     }
     if (!p)
index 8bf0b63cb6a5934d064cf4bf7e171921af2b330b..32c44c6f3db96b2cfecd495087e0f16cace9cd8b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: forward.cc,v 1.56 1999/04/15 06:15:55 wessels Exp $
+ * $Id: forward.cc,v 1.57 1999/04/23 02:57:22 wessels Exp $
  *
  * DEBUG: section 17    Request Forwarding
  * AUTHOR: Duane Wessels
@@ -136,6 +136,15 @@ fwdServerClosed(int fd, void *data)
        debug(17, 3) ("fwdServerClosed: re-forwarding (%d tries, %d secs)\n",
            fwdState->n_tries,
            (int) (squid_curtime - fwdState->start));
+       if (fwdState->servers->next) {
+           /* cycle */
+           FwdServer *fs = fwdState->servers;
+           FwdServer **T;
+           fwdState->servers = fs->next;
+           for (T = &fwdState->servers; *T; T = &(*T)->next);
+           *T = fs;
+           fs->next = NULL;
+       }
        /* use eventAdd to break potential call sequence loops */
        eventAdd("fwdConnectStart", fwdConnectStart, fwdState, 0.0, 1);
     } else {
index 2b7f9452d70ed3c044ef2b16722380b107d976f6..2fe12f98fd398ee44e059ea01a5f6ed3b0848c6b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.281 1999/04/15 06:15:56 wessels Exp $
+ * $Id: ftp.cc,v 1.282 1999/04/23 02:57:23 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -1019,6 +1019,7 @@ ftpStart(FwdState * fwd)
     ftpState->ctrl.fd = fd;
     ftpState->data.fd = -1;
     ftpState->size = -1;
+    ftpState->mdtm = -1;
     ftpState->flags.pasv_supported = 1;
     ftpState->flags.rest_supported = 1;
     ftpState->fwd = fwd;
index d100478b342e2b2f6cf7e95e1f9af9da7907401c..d81295fd11ddd48b29c1b4a5c85ed905b0f683d4 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: main.cc,v 1.294 1999/04/19 05:00:19 wessels Exp $
+ * $Id: main.cc,v 1.295 1999/04/23 02:57:24 wessels Exp $
+ * $Id: main.cc,v 1.295 1999/04/23 02:57:24 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
index bbaddfdf3c75a188090ed0c89af7e3e8ac34a9b5..a7080ce9282fb1f4ac2ce5b45b3bbed49aa62a7c 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: mime.cc,v 1.85 1999/04/15 06:16:01 wessels Exp $
+ * $Id: mime.cc,v 1.86 1999/04/23 02:57:25 wessels Exp $
+ * $Id: mime.cc,v 1.86 1999/04/23 02:57:25 wessels Exp $
  *
  * DEBUG: section 25    MIME Parsing
  * AUTHOR: Harvest Derived
index e0af86a7b12980ad966b5113d9f470f0743d52c8..a6b2fec4184ce0b5f8bb9ebb3df3ef0267ddb8bc 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: neighbors.cc,v 1.271 1999/04/15 06:16:03 wessels Exp $
+ * $Id: neighbors.cc,v 1.272 1999/04/23 02:57:26 wessels Exp $
+ * $Id: neighbors.cc,v 1.272 1999/04/23 02:57:26 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
index 3707d26d33d143647d7ba4290ac1d3bea7d044d8..70f5d6227e3b31fbf162961b886be1086c0529cf 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: net_db.cc,v 1.137 1999/04/15 06:16:04 wessels Exp $
+ * $Id: net_db.cc,v 1.138 1999/04/23 02:57:27 wessels Exp $
+ * $Id: net_db.cc,v 1.138 1999/04/23 02:57:27 wessels Exp $
  *
  * DEBUG: section 38    Network Measurement Database
  * AUTHOR: Duane Wessels
index e5f62f548138ccc8971046fb846fe2fdb61ff29c..6707cb20df8a790d298ddae07a7b8f975e808fb6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: peer_select.cc,v 1.98 1999/01/29 23:01:07 wessels Exp $
+ * $Id: peer_select.cc,v 1.99 1999/04/23 02:57:28 wessels Exp $
  *
  * DEBUG: section 44    Peer Selection Algorithm
  * AUTHOR: Duane Wessels
@@ -420,6 +420,8 @@ peerGetSomeParent(ps_state * ps)
     debug(44, 3) ("peerGetSomeParent: %s %s\n",
        RequestMethodStr[request->method],
        request->host);
+    if (ps->direct == DIRECT_YES)
+       return;
     if ((p = getDefaultParent(request))) {
        code = DEFAULT_PARENT;
     } else if ((p = getRoundRobinParent(request))) {
index f7b291966f0358b27902c60477ec34cfc31515ec..1248b60f7d90408a0e4225497f37a8b2efb60976 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: pinger.cc,v 1.40 1999/04/15 06:16:05 wessels Exp $
+ * $Id: pinger.cc,v 1.41 1999/04/23 02:57:28 wessels Exp $
+ * $Id: pinger.cc,v 1.41 1999/04/23 02:57:28 wessels Exp $
  *
  * DEBUG: section 42    ICMP Pinger program
  * AUTHOR: Duane Wessels
index c97cdfffad3b0bae7bc87a761037e0927986ebc8..2fdae6cabc7f41ae637d0a8e3911bc15f81e8004 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: protos.h,v 1.320 1999/04/19 05:01:24 wessels Exp $
+ * $Id: protos.h,v 1.321 1999/04/23 02:57:29 wessels Exp $
+ * $Id: protos.h,v 1.321 1999/04/23 02:57:29 wessels Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
@@ -95,6 +96,7 @@ extern int parseConfigFile(const char *file_name);
 extern void intlistDestroy(intlist **);
 extern int intlistFind(intlist * list, int i);
 extern wordlist *wordlistAdd(wordlist **, const char *);
+extern wordlist *wordlistDup(const wordlist *);
 extern void wordlistDestroy(wordlist **);
 extern void configFreeMemory(void);
 extern void wordlistCat(const wordlist *, MemBuf * mb);
@@ -859,7 +861,6 @@ extern void storeKeyFree(const cache_key *);
 extern const cache_key *storeKeyScan(const char *);
 extern const char *storeKeyText(const cache_key *);
 extern const cache_key *storeKeyPublic(const char *, const method_t);
-extern const cache_key *storeKeyPublicOld(const char *, const method_t);
 extern const cache_key *storeKeyPrivate(const char *, method_t, int);
 extern int storeKeyHashBuckets(int);
 extern int storeKeyNull(const cache_key *);
index ee004ded42d6df8a1e6232e7caeb9dd3b7483442..313c79aa8010a5fc5fa7a174d1a74a950869d72b 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: snmp_agent.cc,v 1.66 1999/04/15 06:16:07 wessels Exp $
+ * $Id: snmp_agent.cc,v 1.67 1999/04/23 02:57:31 wessels Exp $
+ * $Id: snmp_agent.cc,v 1.67 1999/04/23 02:57:31 wessels Exp $
  *
  * DEBUG: section 49     SNMP Interface
  * AUTHOR: Kostas Anagnostakis
index 51312694fbf5277c30c8e7c5c0bdf65b5c28629f..ba572d6aaf968b9cd45b8e37d01ed5cc8f78abf6 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: squid.h,v 1.187 1999/04/15 06:16:09 wessels Exp $
+ * $Id: squid.h,v 1.188 1999/04/23 02:57:32 wessels Exp $
+ * $Id: squid.h,v 1.188 1999/04/23 02:57:32 wessels Exp $
  *
  * AUTHOR: Duane Wessels
  *
index a81127b429ff1ce61b991eef4e3dc9d5d257709e..4919549325f3b45b2df48080fbe04e089604757e 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: ssl.cc,v 1.93 1999/04/15 06:16:09 wessels Exp $
+ * $Id: ssl.cc,v 1.94 1999/04/23 02:57:33 wessels Exp $
+ * $Id: ssl.cc,v 1.94 1999/04/23 02:57:33 wessels Exp $
  *
  * DEBUG: section 26    Secure Sockets Layer Proxy
  * AUTHOR: Duane Wessels
index 35e2698ec257d41920f4d9ea98e28039eda5451e..ce8afc33a3c402aef15739d7b18cc3f2374076bd 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: stat.cc,v 1.313 1999/04/16 01:00:52 wessels Exp $
+ * $Id: stat.cc,v 1.314 1999/04/23 02:57:34 wessels Exp $
+ * $Id: stat.cc,v 1.314 1999/04/23 02:57:34 wessels Exp $
  *
  * DEBUG: section 18    Cache Manager Statistics
  * AUTHOR: Harvest Derived
index 48fbbed00b667b004b9b2c200d04afbcff84b984..6422b042604ceb00f616c8a8604ba3f4304d15d9 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: store.cc,v 1.489 1999/04/08 07:16:41 wessels Exp $
+ * $Id: store.cc,v 1.490 1999/04/23 02:57:36 wessels Exp $
+ * $Id: store.cc,v 1.490 1999/04/23 02:57:36 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager
  * AUTHOR: Harvest Derived
@@ -279,10 +280,7 @@ storeGet(const cache_key * key)
 StoreEntry *
 storeGetPublic(const char *uri, const method_t method)
 {
-    StoreEntry *e = storeGet(storeKeyPublic(uri, method));
-    if (e == NULL && squid_curtime < 922500000)
-       e = storeGet(storeKeyPublicOld(uri, method));
-    return e;
+    return storeGet(storeKeyPublic(uri, method));
 }
 
 static int
index e62eddbfdfc025e9032cf6b53d16a48f57298732..1f49166653f60e6c628702ef263680e8bfcc9d4f 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: store_client.cc,v 1.62 1999/04/15 06:16:11 wessels Exp $
+ * $Id: store_client.cc,v 1.63 1999/04/23 02:57:37 wessels Exp $
+ * $Id: store_client.cc,v 1.63 1999/04/23 02:57:37 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager Client-Side Interface
  * AUTHOR: Duane Wessels
@@ -135,6 +136,10 @@ storeClientListAdd(StoreEntry * e, void *data)
 #if DELAY_POOLS
     delayRegisterDelayIdPtr(&sc->delay_id);
 #endif
+#if DELAY_POOLS
+    sc->delay_id = 0;
+    delayRegisterDelayIdPtr(&sc->delay_id);
+#endif
 }
 
 static void
index 3bd9261265a39e22382d5ea17135587f4d3d7093..f772e91c79887531863987fffa8fd349fb9fc151 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: store_dir.cc,v 1.85 1999/04/15 06:16:12 wessels Exp $
+ * $Id: store_dir.cc,v 1.86 1999/04/23 02:57:37 wessels Exp $
+ * $Id: store_dir.cc,v 1.86 1999/04/23 02:57:37 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
index def99d4e2cbdd6a28e7758c9b140606f4ceabdfa..ef85fbf21e6d861009e1132d99b71c2d3f664d30 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_key_md5.cc,v 1.20 1999/01/19 02:24:33 wessels Exp $
+ * $Id: store_key_md5.cc,v 1.21 1999/04/23 02:57:38 wessels Exp $
  *
  * DEBUG: section 20    Storage Manager MD5 Cache Keys
  * AUTHOR: Duane Wessels
@@ -107,21 +107,6 @@ storeKeyPrivate(const char *url, method_t method, int id)
     return digest;
 }
 
-/*
- * Compatibility transition period.  Remove this after Mar 26, 1998
- */
-const cache_key *
-storeKeyPublicOld(const char *url, const method_t method)
-{
-    static cache_key digest[MD5_DIGEST_CHARS];
-    MD5_CTX M;
-    MD5Init(&M);
-    MD5Update(&M, (unsigned char *) &method, sizeof(method));
-    MD5Update(&M, (unsigned char *) url, strlen(url));
-    MD5Final(digest, &M);
-    return digest;
-}
-
 const cache_key *
 storeKeyPublic(const char *url, const method_t method)
 {
index 521a50a7bc0726238216bc5a4fc7316ec126acbf..d113e536c8ac9f557cea3e2d1265302524ca3101 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: structs.h,v 1.282 1999/04/19 04:45:07 wessels Exp $
+ * $Id: structs.h,v 1.283 1999/04/23 02:57:39 wessels Exp $
+ * $Id: structs.h,v 1.283 1999/04/23 02:57:39 wessels Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
index 676ec8e22e09b078c2edc10bf31d4584d127ed16..74e3d8148c38d016e193dfbebe190e8ce6e1a62e 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: tools.cc,v 1.175 1999/04/15 06:03:09 wessels Exp $
+ * $Id: tools.cc,v 1.176 1999/04/23 02:57:40 wessels Exp $
+ * $Id: tools.cc,v 1.176 1999/04/23 02:57:40 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -186,7 +187,7 @@ rusage_maxrss(struct rusage *r)
     return r->ru_maxrss;
 #elif defined(BSD4_4)
     return r->ru_maxrss;
-#elif HAVE_GETPAGESIZE
+#elif defined(HAVE_GETPAGESIZE) && HAVE_GETPAGESIZE != 0
     return (r->ru_maxrss * getpagesize()) >> 10;
 #elif defined(PAGESIZE)
     return (r->ru_maxrss * PAGESIZE) >> 10;
@@ -298,8 +299,7 @@ static void
 fatal_common(const char *message)
 {
 #if HAVE_SYSLOG
-    if (opt_syslog_enable)
-       syslog(LOG_ALERT, "%s", message);
+    syslog(LOG_ALERT, "%s", message);
 #endif
     fprintf(debug_log, "FATAL: %s\n", message);
     if (opt_debug_stderr && debug_log != stderr)
index de5b421c75b53aa58de77f5f6a3bc38e814c3ec1..32867d1a9666c0bab2d3a4b09aa45d7f5e2e40b6 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: tunnel.cc,v 1.93 1999/04/15 06:16:09 wessels Exp $
+ * $Id: tunnel.cc,v 1.94 1999/04/23 02:57:33 wessels Exp $
+ * $Id: tunnel.cc,v 1.94 1999/04/23 02:57:33 wessels Exp $
  *
  * DEBUG: section 26    Secure Sockets Layer Proxy
  * AUTHOR: Duane Wessels
index d68f87080cbb14e85f255d2e5da91e657b181ecb..d4e50f4c08eb65ffb3b345ac03594aeefdf6dcd6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: unlinkd.cc,v 1.29 1998/12/02 05:07:26 wessels Exp $
+ * $Id: unlinkd.cc,v 1.30 1999/04/23 02:57:40 wessels Exp $
  *
  * DEBUG: section 12    Unlink Daemon
  * AUTHOR: Duane Wessels
  *
  */
 
+#include "squid.h"
+
 #ifdef UNLINK_DAEMON
 
 /* This is the external unlinkd process */
 
-#include "config.h"
-
-#if HAVE_LIBC_H
-#include <libc.h>
-#endif
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#if HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#if HAVE_STDIO_H
-#include <stdio.h>
-#endif
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
 #define UNLINK_BUF_LEN 1024
 
 int
@@ -80,8 +62,6 @@ main(int argc, char *argv[])
 
 /* This code gets linked to Squid */
 
-#include "squid.h"
-
 #if USE_UNLINKD
 static int unlinkd_wfd = -1;
 static int unlinkd_rfd = -1;
index 98ba8f0fe4475e47a5a45843c8a21902cbf89db6..f8d0b2cafb577c8e135e3b8258370b2f1e427c80 100644 (file)
@@ -1,6 +1,7 @@
 
 /*
- * $Id: url.cc,v 1.114 1999/04/15 06:16:13 wessels Exp $
+ * $Id: url.cc,v 1.115 1999/04/23 02:57:41 wessels Exp $
+ * $Id: url.cc,v 1.115 1999/04/23 02:57:41 wessels Exp $
  *
  * DEBUG: section 23    URL Parsing
  * AUTHOR: Duane Wessels
index 558cf2134debbd112baca63a5647f626ed44cb60..808ab663191f35c86a66db01a25224cd4b2a45ec 100644 (file)
@@ -1,7 +1,8 @@
 
 /*
  *
- * $Id: urn.cc,v 1.53 1999/04/15 06:16:14 wessels Exp $
+ * $Id: urn.cc,v 1.54 1999/04/23 02:57:42 wessels Exp $
+ * $Id: urn.cc,v 1.54 1999/04/23 02:57:42 wessels Exp $
  *
  * DEBUG: section 52    URN Parsing
  * AUTHOR: Kostas Anagnostakis