]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
24 years agoA number of CARP bug fixes.
wessels [Tue, 5 Dec 2000 17:10:57 +0000 (17:10 +0000)] 
A number of CARP bug fixes.

peer->carp.hash was an unsigned long, but the spec requires 32-bit math
on integers.  Since longs are known to sometimes be 64-bits, its safer
to use unsigned int.

peer->carp.load_factor was a float, but its better to use double to
be consistent with other floating point functions and variables.

In parse_peer() I'm concerned that *token could be signed, so its
now casted to unsigned int.

In parse_peer() there is a bug in calculating the proxy hostname hash.
On the final ROTATE_LEFT, it should be "=" rather than "+=".

In carpInit() pay special attention to int/double conversion bugs
and passing ints to functions that expect doubles.

In carpInit() there is a bug with the value of "k".  In the loop,
k needs to be incremented *before* its used.  The internet-draft
begins with k=1, so the first time through the loop k should equal 2.

Added "carp" to cache manager for info and debugging.

I think there are still two bugs: (1) the draft says the multipliers
must be calculated in order of smallest to largest factor.  We don't
do that yet. (2) the 'score' calculation needs to be converted to
double when we multiply by the multiplier.  Otherwise there will
be overflows since the multiplier can be greater than 1.

24 years agostore.c:1299: warning: control reaches end of non-void function
wessels [Tue, 5 Dec 2000 16:18:36 +0000 (16:18 +0000)] 
store.c:1299: warning: control reaches end of non-void function

24 years agoindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
wessels [Tue, 5 Dec 2000 16:15:57 +0000 (16:15 +0000)] 
indent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl

24 years agoArgh, that last patch to src/store_dir.c is bogus. sd->log.clean.done
wessels [Tue, 5 Dec 2000 16:11:24 +0000 (16:11 +0000)] 
Argh, that last patch to src/store_dir.c is bogus.   sd->log.clean.done
will never be NULL, it's sd->log.clean.state that's the problem.
Also, this way I get to fix it in four files, not just one.

24 years agoNPR bug. sd->log.clean.done will be NULL if start() fails.
wessels [Tue, 5 Dec 2000 16:03:31 +0000 (16:03 +0000)] 
NPR bug.  sd->log.clean.done will be NULL if start() fails.

24 years agoparse_peer() was checking for a self-configured peer, but its not
wessels [Tue, 5 Dec 2000 15:55:47 +0000 (15:55 +0000)] 
parse_peer() was checking for a self-configured peer, but its not
safe to call getMyHostname() before we parsed the whole config
file.  Therefore, I moved this check into neighbors_open().

24 years agoA feature to limit the number of connections that we make to
wessels [Tue, 5 Dec 2000 13:24:00 +0000 (13:24 +0000)] 
A feature to limit the number of connections that we make to
a neighbor cache.

24 years agoindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
wessels [Tue, 5 Dec 2000 03:40:36 +0000 (03:40 +0000)] 
indent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl

24 years agoEven though it was probably safe, its more correct to have the
wessels [Sat, 2 Dec 2000 00:41:26 +0000 (00:41 +0000)] 
Even though it was probably safe, its more correct to have the
assert() before this assignment, rather than after it.

24 years agoChris.Tilbury@warwick.ac.uk says we need -lrt on Solaris now to compile
wessels [Fri, 1 Dec 2000 07:02:56 +0000 (07:02 +0000)] 
Chris.Tilbury@warwick.ac.uk says we need -lrt on Solaris now to compile
async I/O.

24 years agoAbort the configure script if we can't find a perl executable.
wessels [Fri, 1 Dec 2000 03:44:00 +0000 (03:44 +0000)] 
Abort the configure script if we can't find a perl executable.

24 years agoMust memset() this static variable before using.
wessels [Fri, 1 Dec 2000 03:28:32 +0000 (03:28 +0000)] 
Must memset() this static variable before using.

24 years agoForgot to call 'Done' on walker in MaintainSwapSpace.
wessels [Fri, 1 Dec 2000 03:12:46 +0000 (03:12 +0000)] 
Forgot to call 'Done' on walker in MaintainSwapSpace.

24 years agostoreDirWriteCleanLogs() could abort the procedure if file_open()
wessels [Fri, 1 Dec 2000 03:08:47 +0000 (03:08 +0000)] 
storeDirWriteCleanLogs() could abort the procedure if file_open()
fails, leaking various structures including repl walkers.

24 years agoindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
wessels [Fri, 1 Dec 2000 03:07:32 +0000 (03:07 +0000)] 
indent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl

24 years agoHandle cancelled reads. diskdstate->flags_closing is now set and cleared
adrian [Mon, 27 Nov 2000 07:03:33 +0000 (07:03 +0000)] 
Handle cancelled reads. diskdstate->flags_closing is now set and cleared
when a FD is opened and closed, and during storeDiskdReadDone() the
copy and callback are only made if the callbackdata is valid.

This differs from before where the copy would always take place, but
the callback would only occur if the callbackdata was valid.

Note that I'm assert()ing that flags_closing == 0 if the callbackdata is
valid. If this ever gets triggered, I think we have another problem ..

24 years ago few changes to fix for XMALLOC_DEBUG:
adrian [Sat, 25 Nov 2000 23:02:14 +0000 (23:02 +0000)] 
 few changes to fix for XMALLOC_DEBUG:
 - check_free shouldn't be called with a NULL pointer
 - I needed to increase DBG_ARRY_SZ to handle larger alloc count
   (perhaps should we use realloc here to grow dynamically?)
 - cf_gen.c used inconsitently alloc funcs: xcalloc() but free(),
   resulting in check_free() to assert during make using cf_gen

Submitted by: Andres Kroomnaa <andre@online.ee>

24 years agoReplace safe_free() with the appropriate memFree() now that these two
adrian [Sat, 25 Nov 2000 21:51:04 +0000 (21:51 +0000)] 
Replace safe_free() with the appropriate memFree() now that these two
objects are from memory pools. (I believe it was me who converted them
initially, but missed this..)

Submitted by: Andres Kroonmaa <andre@online.ee>

24 years agorenamed html.c to html_quote.c, also to avoid cvs patch idiocy
wessels [Wed, 22 Nov 2000 04:15:10 +0000 (04:15 +0000)] 
renamed html.c to html_quote.c, also to avoid cvs patch idiocy

24 years agoEverywhere where Squid inserts text received from the network into
wessels [Wed, 22 Nov 2000 04:14:44 +0000 (04:14 +0000)] 
Everywhere where Squid inserts text received from the network into
a HTML page (error pages, FTP listings, Gopher listings, ...) care
must be taken to ensure that the text is properly encoded as HTML,
or a malicious user might be able to insert script code or other
HTML tags, and exploit the web browser of any user visiting their
page or clicking on that funny link received in a email..

24 years agoadding
wessels [Wed, 22 Nov 2000 04:13:38 +0000 (04:13 +0000)] 
adding

24 years agoDon't return NULL in createRemovalPolicy() if there is no match for
adrian [Sat, 18 Nov 2000 17:46:32 +0000 (17:46 +0000)] 
Don't return NULL in createRemovalPolicy() if there is no match for
the given policy type. None of the FS code handles this correctly,
and it was causing SIGSEGVs when a cache_replacement_policy was not
set in squid.conf, defaulting to lru, and lru was not compiled in.

We now warn very loudly and die with an error. cache.log will tell the
user to check cache_replacement_policy and memory_replacement_policy
in their squid.conf file.

24 years agoForced commit:
adrian [Wed, 15 Nov 2000 20:22:25 +0000 (20:22 +0000)] 
Forced commit:

The URL covering this:

http://www.squid-cache.org/mail-archive/squid-dev/200008/0080.html

24 years agoFixed the internal URL code to obey appendDomain for internal
adrian [Wed, 15 Nov 2000 20:01:53 +0000 (20:01 +0000)] 
Fixed the internal URL code to obey appendDomain for internal
objects if it needs appending. This fixes weirdnesses where
a machine can think it is "foo.bar.com", and "foo" is requested.

Submitted by: Brian Degenhardt <bmd@mp3.com>

24 years agoFixed the forwarding / peer detection code so that a peer which is found
adrian [Wed, 15 Nov 2000 19:53:49 +0000 (19:53 +0000)] 
Fixed the forwarding / peer detection code so that a peer which is found
to be us is ignored rather than committing suicide.

Submitted by: Brian Degenhardt <bmd@mp3.com>

24 years agoDW:
wessels [Wed, 15 Nov 2000 09:32:53 +0000 (09:32 +0000)] 
DW:
 - My recent clientLifetimeTimeout addition causes a memory leak because
   cbdata was locked, but never unlocked  if the timeout never happens.
   Maybe its safe enough to assume that if the FD is open, and the
   timeout triggers, that 'http' is valid.

24 years agoUp the version to 2.5.DEVEL . Don't give it a devel version yet, since
adrian [Tue, 14 Nov 2000 18:57:43 +0000 (18:57 +0000)] 
Up the version to 2.5.DEVEL . Don't give it a devel version yet, since
we haven't rolled a tarball.

24 years agoMerge in changes from 1.7.2.1 on SQUID_2_4:
adrian [Tue, 14 Nov 2000 16:55:49 +0000 (16:55 +0000)] 
Merge in changes from 1.7.2.1 on SQUID_2_4:

  DW:
   - I'm an idiot, got the debug level logic backwards

.. we really should have done this the opposite way around to reduce the
CVS repo size, but thats just me being anal. :)

24 years agohttpBuildVersion() fixes from 2.4 branch, plus indent
wessels [Tue, 14 Nov 2000 14:06:19 +0000 (14:06 +0000)] 
httpBuildVersion() fixes from 2.4 branch, plus indent

24 years agoDW:
wessels [Tue, 14 Nov 2000 06:30:26 +0000 (06:30 +0000)] 
DW:
 - httpBuildVersion fixes from 2.4 branch

24 years agoFix an incorrect xfree() which should be a memFree(). Oops.
adrian [Tue, 14 Nov 2000 04:45:48 +0000 (04:45 +0000)] 
Fix an incorrect xfree() which should be a memFree(). Oops.

Submitted by: Andres Kroonmaa <andre@online.ee>

24 years agoDW:
wessels [Tue, 14 Nov 2000 03:42:33 +0000 (03:42 +0000)] 
DW:
- http.c: In function `httpBuildRequestHeader':
  http.c:752: warning: double format, http_version_t arg (arg 4)

24 years agoConvert http_ver from a float to http_version_t which is a struct containing
adrian [Mon, 13 Nov 2000 19:25:11 +0000 (19:25 +0000)] 
Convert http_ver from a float to http_version_t which is a struct containing
two integers.

Submitted by: Robert Collins <robert.collins@itdomain.com.au>

24 years agotypo in comments
wessels [Sat, 11 Nov 2000 12:15:47 +0000 (12:15 +0000)] 
typo in comments

24 years agoMajor rewrite of async-io to make it behave a bit more sane with
hno [Sat, 11 Nov 2000 04:42:03 +0000 (04:42 +0000)] 
Major rewrite of async-io to make it behave a bit more sane with
substantially less overhead.

Some tuning work still remains to make it perform optimal. See the start
of store_asyncufs.h for all the knobs.

24 years agoStore rebuild double-check cleanup by Robert Collins, slightly altered
adrian [Fri, 10 Nov 2000 16:04:50 +0000 (16:04 +0000)] 
Store rebuild double-check cleanup by Robert Collins, slightly altered
by me.

This code implements a two-tiered doublecheck - -S reportonly which warns
for mismatched file lengths, and -S force which will unlink files which
fail a doublecheck. Actual file unlinking is also implemented now, so when
a double check is performed, it will actually clean up the cache store.

24 years agoDW:
wessels [Fri, 10 Nov 2000 03:20:52 +0000 (03:20 +0000)] 
DW:
 - Log client connection lifetime timeout to cachelog as per Henrik's
   suggestion.

24 years agoDW:
wessels [Fri, 10 Nov 2000 01:21:27 +0000 (01:21 +0000)] 
DW:
 - Rewrite of much of refreshCheck().

   This was prompted by a bug report that we didn't properly handle the
   must-revalidate directive.  Indeed, we always caused a refresh
   for must-revalidate.   The spec says must-revalidate only takes effect
   for stale responses.

   I find the spec to be unclear on how to handle must-revalidate without
   an explicit expiration time.  Currently, if we have a response
   that has must-revalidate, no expires, but the last-modified factor
   rule says the reponse is fresh, then we don't force a validation.

   Also added support for the max-stale request directive.

   I changed some of the internal accounting to use status codes.  In the
   future it may be useful to have a "refresh.log" file so people can
   figure out why a particular request got validated, or didn't.

24 years agoDW:
wessels [Thu, 9 Nov 2000 10:32:59 +0000 (10:32 +0000)] 
DW:
 - Clean up debugging

24 years agoDW:
wessels [Thu, 9 Nov 2000 10:09:47 +0000 (10:09 +0000)] 
DW:
 - Adding max-stale cache-control directive.

24 years agoDW:
wessels [Thu, 9 Nov 2000 03:22:16 +0000 (03:22 +0000)] 
DW:
 - Two bugs with yesterday's date parsing changes.  (1) Need to incrment
   past "," after strchr(), and (2) struct tm tm needs to be static
   in parse_date2().

24 years agoRadu Greab (radu@netsoft.ro):
wessels [Wed, 8 Nov 2000 06:43:15 +0000 (06:43 +0000)] 
Radu Greab (radu@netsoft.ro):
 - If an AS contains networks with mask 0, when trying to view the
   AS Number Database squid enters into an infinite loop. The patch
   below fixes the problem.

24 years agoDW:
wessels [Wed, 8 Nov 2000 06:37:35 +0000 (06:37 +0000)] 
DW:
 - Changes prompted by bug report that "Wed Aug 9 11:36:06 2000" could
   not be parsed.  The parse_rfc1123() code assumed there was an extra
   space after Aug and before "9".

   This change breaks the parsing into smaller functions to make the
   code easier to read and understand.

   I changed parsing of the "third" date format (asctime()) to use
   a buffer copy and strtok.  This makes it more flexible.  For example,
   we don't have to require strlen(s) < 24.

24 years agoDW:
wessels [Wed, 8 Nov 2000 05:04:38 +0000 (05:04 +0000)] 
DW:
 - Don't send ICP queries to neighbors when the ICP port is zero.

24 years agoCross-site scripting fixes by Robert Collins and Henrik Nordstrom
hno [Sun, 5 Nov 2000 06:04:09 +0000 (06:04 +0000)] 
Cross-site scripting fixes by Robert Collins and Henrik Nordstrom

Everywhere where Squid inserts text received from the network into
a HTML page (error pages, FTP listings, Gopher listings, ...) care
must be taken to ensure that the text is properly encoded as HTML,
or a malicious user might be able to insert script code or other
HTML tags, and exploit the web browser of any user visiting their
page or clicking on that funny link received in a email..

24 years agoDW:
wessels [Sat, 4 Nov 2000 00:03:54 +0000 (00:03 +0000)] 
DW:
 - A fix for problems relating to large DNS replies.  RFC 1035 says
   that DNS/UDP messages must be 512 octets or less.  Some servers
   (BIND on OS/2) are sending larger packets, but Squid was only
   reading the first 512 octets.  This could cause buffer overruns
   in rfc1035.c.

   This patch changes recv() to use the maximum UDP socket buffer
   size.  However, if we get a large reply we tell rfc1035.c that
   we only got 512 octets.  Thus, its a little safer if that code
   has bugs and reads past 512.

24 years agoDW:
wessels [Fri, 3 Nov 2000 23:43:58 +0000 (23:43 +0000)] 
DW:
 - If we discover a truncated packetin the middle of unpacking
   a resource record, we need to zap RR fields that were already
   unpacked.  Otherwise we can end up with RR->class = RFC1035_CLASS_IN,
   RR->type = RFC1035_TYPE_A, and RR->rdlenght = 0.

24 years agogindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
wessels [Fri, 3 Nov 2000 23:39:42 +0000 (23:39 +0000)] 
gindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl

24 years agoDW:
wessels [Fri, 3 Nov 2000 23:38:46 +0000 (23:38 +0000)] 
DW:
 - key --> hash.key changes

24 years agoDW:
wessels [Fri, 3 Nov 2000 01:34:48 +0000 (01:34 +0000)] 
DW:
 - `SD' undeclared (first use in this function)

24 years agoDW:
wessels [Thu, 2 Nov 2000 23:30:10 +0000 (23:30 +0000)] 
DW:
 - avoid FPE in idnsCheckQueue() if name servers went away (nns = 0)
   because we're reconfiguring or shutting down.

24 years agoDW:
wessels [Thu, 2 Nov 2000 05:04:28 +0000 (05:04 +0000)] 
DW:
 - mistake from global --> per SD size checks patch

24 years agoDW:
wessels [Thu, 2 Nov 2000 04:48:16 +0000 (04:48 +0000)] 
DW:
 - replacement should use SwapDir high/low values, not the global ones.
   Made this patch for diskd some time ago, but never duplicated the
   patch in all the other fs duplicated code.

24 years agoDW:
wessels [Wed, 1 Nov 2000 16:36:05 +0000 (16:36 +0000)] 
DW:
 - An FTP PUT with content-length: 0 causes an assertion because we never
   called pumpInit().

24 years agoDW:
wessels [Wed, 1 Nov 2000 11:50:25 +0000 (11:50 +0000)] 
DW:
 - missed these hash_link changes in the previous commit.

24 years agoDW:
wessels [Wed, 1 Nov 2000 11:03:14 +0000 (11:03 +0000)] 
DW:
 - This patch is some work-in-progress for a "forward.log" that would
   log all server-side requests that get forwarded.

   This patch was previously committed with an incorrect CVS comment so
   I manually removed those revisions and re-committed the patch.

24 years agogindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
wessels [Wed, 1 Nov 2000 10:58:51 +0000 (10:58 +0000)] 
gindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl

24 years agoDW:
wessels [Wed, 1 Nov 2000 10:35:40 +0000 (10:35 +0000)] 
DW:
 - Replaced "xxx Entries read so far" messages with a global, friendlier
   "Store rebuilding is XX% complete" message.

24 years agogindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
wessels [Wed, 1 Nov 2000 10:32:03 +0000 (10:32 +0000)] 
gindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl

24 years agoDW:
wessels [Wed, 1 Nov 2000 06:48:08 +0000 (06:48 +0000)] 
DW:
 - Changed occurances of

        struct _foo {
            /* first two items must be same as hash_link */
            char *key;
            foo *next;
            ...
        };

   to

        struct _foo {
            hash_link hash;     /* must be first */
            ...
        };

24 years agoDW:
wessels [Thu, 26 Oct 2000 13:09:23 +0000 (13:09 +0000)] 
DW:
 - logfileOpen() doesn't use O_TRUNC, so we need to unlink/truncate
   the netdb_state file explicitly.

24 years agoAdding Robert Collins in as a contributor, because, well, he is.
adrian [Sun, 22 Oct 2000 22:24:04 +0000 (22:24 +0000)] 
Adding Robert Collins in as a contributor, because, well, he is.

24 years agoadded in an update to ChangeLog explaining Duane's changes to the
adrian [Sun, 22 Oct 2000 20:29:13 +0000 (20:29 +0000)] 
added in an update to ChangeLog explaining Duane's changes to the
fqdncache.

24 years agoAdded a couple of things which have changed in this version.
adrian [Sun, 22 Oct 2000 03:28:17 +0000 (03:28 +0000)] 
Added a couple of things which have changed in this version.

24 years agoReran autoconf and autoheader
hno [Sat, 21 Oct 2000 05:53:06 +0000 (05:53 +0000)] 
Reran autoconf and autoheader

24 years agoCYGWIN port by Robert Collins
hno [Sat, 21 Oct 2000 05:50:58 +0000 (05:50 +0000)] 
CYGWIN port by Robert Collins

24 years agoSpelling correction
hno [Sat, 21 Oct 2000 05:47:46 +0000 (05:47 +0000)] 
Spelling correction

24 years agoCleaned up RebuildState to show that the structure is fs-dependent
hno [Wed, 18 Oct 2000 10:00:23 +0000 (10:00 +0000)] 
Cleaned up RebuildState to show that the structure is fs-dependent

24 years agoFix cf_gen_defines so it can be parsed through Solaris awk.
adrian [Wed, 18 Oct 2000 03:15:24 +0000 (03:15 +0000)] 
Fix cf_gen_defines so it can be parsed through Solaris awk.

Submitted by: Andres Kroonmaa <andre@online.ee>

24 years agoAndres Kroonmaa's MemPool tidyup, take 1. Take a whole bunch of
adrian [Tue, 17 Oct 2000 14:06:01 +0000 (14:06 +0000)] 
Andres Kroonmaa's MemPool tidyup, take 1. Take a whole bunch of
xmalloc/xcalloc's and replace them with mempool'ed versions of
things. Not everything has been converted, but this is a start.
Notable weirdnesses are:

* aufs - there are now a few pools which are used for string allocation
  for things like object paths. This might not be the most optimal
  solution but its better than what existed.

* pconn.c - an initial pconn FD set is mempool'ed, and if the pconn set
  grows bigger than PCONN_FD_SZ it changes to xmalloc()

* client_side.c - the incoming request buffer is now initially mempooled,
  of size CLIENT_REQ_BUF_SZ (4096 bytes atm). If it needs to grow, it
  changes to xmalloc()

24 years agoDW:
wessels [Fri, 13 Oct 2000 14:45:07 +0000 (14:45 +0000)] 
DW:
 - document file_map_bit_reset gotchas.

24 years agoDW:
wessels [Fri, 13 Oct 2000 12:35:54 +0000 (12:35 +0000)] 
DW:
 - stupid typo in comments

24 years agoDW:
wessels [Fri, 13 Oct 2000 12:35:05 +0000 (12:35 +0000)] 
DW:
 - We have to test the bit before calling file_map_bit_reset.
   file_map_bit_reset doesn't do bounds checking.  It assumes
   filn is a valid file number, but it might not be because
   the map is dynamic in size.  Also clearing an already clear
   bit puts the map counter of-of-whack.  Damn, been looking
   for that bug for a long time.

- gindent for good measure.

24 years agoDW:
wessels [Wed, 11 Oct 2000 00:15:30 +0000 (00:15 +0000)] 
DW:
 - My change to eliminate stdio from net_db.c sucked.  It leaked memory,
   and it had awkward buffer offset junk.  Its probably better to
   use the logfile.c code, which unfortunately requires a change
   to logfileOpen().  Previously the logfile code exited with
   a fatal message if there was an error opening or writing the
   file.  For netdb we don't care that much, so I added a "fatal"
   flag to logfileOpen().

24 years agoDW:
wessels [Tue, 10 Oct 2000 08:22:25 +0000 (08:22 +0000)] 
DW:
 - I get coredumps in free() with CommWriteStateCallbackAndFree sometime.
   Not sure if there is a bug here, but it seems like that code could
   lead to double-freeing the buffer.  This change makes it safer by
   NULL-ing the free_func before freeing the buffer.

24 years agoDW:
wessels [Tue, 10 Oct 2000 08:10:42 +0000 (08:10 +0000)] 
DW:
 - Changed "WARNING: swapin MD5 mismatch" logging so that it is printed
   only on powers of ten, just like "ignored XX replies non-peer"
   messages in neighbors.c.

24 years agoDW:
wessels [Tue, 10 Oct 2000 00:37:10 +0000 (00:37 +0000)] 
DW:
 - in storeClientReadHeader I see no reason to stay in the loop checking
   swap header values when we find a mismatch.  Currently every
   bad swapfile is displaying both MD5 mismatch and URL mismatch.

24 years agoDW:
wessels [Sat, 7 Oct 2000 22:10:13 +0000 (22:10 +0000)] 
DW:
 - Passing i->handlerData rather than handlerData to cbdataUnlock()
   is wrong and causes a memory leak because the cbdata never gets
   unlocked.

24 years agoDW:
wessels [Fri, 6 Oct 2000 11:42:46 +0000 (11:42 +0000)] 
DW:
 - Evil extra semicolon.

24 years agoDW:
wessels [Fri, 6 Oct 2000 11:21:58 +0000 (11:21 +0000)] 
DW:
 - Only print the debugging in storeDiskdDirSync once per second.

24 years agogindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl
wessels [Fri, 6 Oct 2000 11:13:04 +0000 (11:13 +0000)] 
gindent -br -ce -i4 -ci4 -l80 -nlp -npcs -npsl -d0 -sc -di0 -psl

24 years agoDW:
wessels [Fri, 6 Oct 2000 11:12:35 +0000 (11:12 +0000)] 
DW:
 - In lru_remove(), it seems to be possible for an entry to exist
   in the hash but not be in the LRU list, so check for that case
   rather than suffer a NULL pointer access.

24 years agoDW:
wessels [Fri, 6 Oct 2000 11:00:24 +0000 (11:00 +0000)] 
DW:
 - These XXX comments are out-of-date.

24 years agoDW:
wessels [Fri, 6 Oct 2000 06:58:39 +0000 (06:58 +0000)] 
DW:
 - This warning triggers too easily when checking response time at 5 min
   interval.  Lets try it at 20.

24 years agoDW:
wessels [Fri, 6 Oct 2000 06:26:42 +0000 (06:26 +0000)] 
DW:
 - This exta backslash caused problems on old make's

24 years agoDW:
wessels [Fri, 6 Oct 2000 05:01:40 +0000 (05:01 +0000)] 
DW:
 - Add counters for the number of calls to memPoolAlloc and memPoolFree.

24 years agoDW:
wessels [Thu, 5 Oct 2000 20:02:22 +0000 (20:02 +0000)] 
DW:
 - Removed leftover debugging from removing stdio.

24 years agoMemPools conversions for the connection state and the comm_write state.
adrian [Thu, 5 Oct 2000 18:30:10 +0000 (18:30 +0000)] 
MemPools conversions for the connection state and the comm_write state.
These *should* be used right.

24 years agoDW:
wessels [Thu, 5 Oct 2000 09:26:48 +0000 (09:26 +0000)] 
DW:
 - Change this assetion to a debugging statement, at least temporarily.

24 years agoDW:
wessels [Thu, 5 Oct 2000 09:20:40 +0000 (09:20 +0000)] 
DW:
 - Removed stdio from net_db.c as suggested by Jens-S. Voeckler.

24 years agoDW:
wessels [Thu, 5 Oct 2000 01:34:13 +0000 (01:34 +0000)] 
DW:
 - Make ipcache/fqdncache entry lock counter a short just to be
   further reduce the chance that it overflows.

24 years agoTakahiro Kambe <taca@kyoto.jepro.co.jp>:
wessels [Thu, 5 Oct 2000 00:25:35 +0000 (00:25 +0000)] 
Takahiro Kambe <taca@kyoto.jepro.co.jp>:
 - I compiled squid 2.3STABLE4 and found that three error documents
   weren't translated in Japanese.  And I found a missing translation
   in the Japanese error document which I sent in 2.3STABLE2 days.
   So I'll send those document now.  I've attached the translated
   files.

24 years agoDan Larsson <root@tyfon.net>:
wessels [Thu, 5 Oct 2000 00:23:57 +0000 (00:23 +0000)] 
Dan Larsson <root@tyfon.net>:
 - The error template ERR_TOO_BIG is missing in the swedish errors.
   I've translated the english version from Squid-2.3STABLE4.

24 years ago"Nguyen, Hai" <hnguyen@websense.com>:
wessels [Wed, 4 Oct 2000 23:09:24 +0000 (23:09 +0000)] 
"Nguyen, Hai" <hnguyen@websense.com>:
 - If a redirector returns 301/302 Squid would ignore the new Location
   if the original URL is a cache hit.  So, we need to force all
   301/302 redirects to be cache misses.

24 years agoDW:
wessels [Wed, 4 Oct 2000 21:54:45 +0000 (21:54 +0000)] 
DW:
 - Some debugging for the case when we deny a proxy request and Squid
   is configured for proxy-only mode.

24 years agoDW:
wessels [Wed, 4 Oct 2000 21:32:13 +0000 (21:32 +0000)] 
DW:
 - Fixed range_offset_limit, again.  The problem this time is that
   client_side.c wouldn't set the we_dont_do_ranges flag for normal
   cache misses.  It was only being set for requests that might
   have been hits, but we decided to change to a miss.  I moved half
   of clientCheckRangeOffsetLimit into HttpHdrRange.c and called
   it httpHdrRangeOffsetLimit.  The other half stays in client_side.c
   but is now called clientCheckRangeForceMiss.  Also removed the
   confusing we_dont_do_ranges flag.

24 years agoDW:
wessels [Wed, 4 Oct 2000 09:41:20 +0000 (09:41 +0000)] 
DW:
 - forcing miss due to range_offset_limit debugging should not be at
   level 1.

24 years agoDW:
wessels [Wed, 4 Oct 2000 09:18:58 +0000 (09:18 +0000)] 
DW:
 - Typo: "client" appears twice.

24 years agoDW:
wessels [Wed, 4 Oct 2000 08:18:48 +0000 (08:18 +0000)] 
DW:
 - log SSL status codes in access.log.  Since ssl.c doesn't know about
   HttpReply or MemObject, the least ugly way to do this seems to be
   passing a pointer to the HTTP status variable.

24 years agoDW:
wessels [Wed, 4 Oct 2000 08:14:54 +0000 (08:14 +0000)] 
DW:
 - There is really no reason to have the 'http_code' member of
   struct _clientHttpRequest.  It was only used locally in one
   function.