]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
24 years ago'miniumum_direct_rtt' feature from Georgy Salnikov <sge@nmr.nioch.nsc.ru>
wessels [Tue, 2 Jan 2001 06:09:59 +0000 (06:09 +0000)] 
'miniumum_direct_rtt' feature from Georgy Salnikov <sge@nmr.nioch.nsc.ru>

24 years agoWrong debugging section for ipcache.c
wessels [Tue, 2 Jan 2001 05:14:32 +0000 (05:14 +0000)] 
Wrong debugging section for ipcache.c

24 years agoPrevent NULL pointer access in aclMatchAcl(). Some ACL types require
wessels [Tue, 2 Jan 2001 05:03:55 +0000 (05:03 +0000)] 
Prevent NULL pointer access in aclMatchAcl().  Some ACL types require
checklist->request_t, but it won't be available in some cases (like
snmp_access).  Warn the admin that the ACL can't be checked and that
we're denying it.

24 years agoMake fopen of mime.conf on reconfigure a fail-soft condition, instead
hno [Mon, 1 Jan 2001 23:24:39 +0000 (23:24 +0000)] 
Make fopen of mime.conf on reconfigure a fail-soft condition, instead
of causing a crash and burn situation.

24 years agotempnam() may be unsafe; mkstemp() is better.
wessels [Mon, 1 Jan 2001 06:53:03 +0000 (06:53 +0000)] 
tempnam() may be unsafe; mkstemp() is better.

24 years agoSome corrections/additions from the original /etc/hosts patch:
hno [Sun, 31 Dec 2000 12:15:38 +0000 (12:15 +0000)] 
Some corrections/additions from the original /etc/hosts patch:
* The 'H' flag in the ipcache cachemgr output was missing.
* The memory allocation comment on ipcacheAddEntryFromHosts was plain wrong
  (copy pasted from fqdncache.c I think.. correct there but not here)

24 years ago'kinkie' is now a contributor
hno [Sun, 31 Dec 2000 12:10:54 +0000 (12:10 +0000)] 
'kinkie' is now a contributor

24 years ago/etc/hosts parsing patch by Chemolli Francesco.
wessels [Sun, 31 Dec 2000 06:29:06 +0000 (06:29 +0000)] 
/etc/hosts parsing patch by Chemolli Francesco.

24 years agostringLimitInit() asserts if given more than 64K bytes because String
wessels [Sun, 31 Dec 2000 05:15:57 +0000 (05:15 +0000)] 
stringLimitInit() asserts if given more than 64K bytes because String
uses an unsigned short to store the string length.  This patch prevents
the assertion by ignoring HTTP header names and values longer than 64K.

24 years agoFrom Evan:
adrian [Wed, 20 Dec 2000 21:54:41 +0000 (21:54 +0000)] 
From Evan:

Note: In the future, you may wish to contact me at <ejones@uwaterloo.ca>.
I'm not sure how long my @netwinder.org e-mail address will exist.

24 years agoMan page describing the command line options
hno [Tue, 19 Dec 2000 04:54:18 +0000 (04:54 +0000)] 
Man page describing the command line options
by Scott Schram <scott@schram.net>

24 years agoaccess_log none
hno [Tue, 19 Dec 2000 04:52:40 +0000 (04:52 +0000)] 
access_log none
(don't know why this file didn't get committed on the first attempt..)

24 years agoChange a mis-use of SM_PAGE_SIZE - asn.c uses MEM_4K_BUF's, and even
adrian [Mon, 18 Dec 2000 16:48:50 +0000 (16:48 +0000)] 
Change a mis-use of SM_PAGE_SIZE - asn.c uses MEM_4K_BUF's, and even
though SM_PAGE_SIZE may be 4k the dependency shouldn't be there.

24 years agoEquivalence is ==, not =. Was wrongly done in an assert statement.
hno [Sun, 17 Dec 2000 20:31:29 +0000 (20:31 +0000)] 
Equivalence is ==, not =. Was wrongly done in an assert statement.

24 years agoaccess_log none
hno [Sun, 17 Dec 2000 20:27:37 +0000 (20:27 +0000)] 
access_log none

24 years agoReturn NULL after fatal() to keep GCC happy.
hno [Sun, 17 Dec 2000 15:54:02 +0000 (15:54 +0000)] 
Return NULL after fatal() to keep GCC happy.

24 years agoRemoved some old unused code, found by Moez Mahfoudh
hno [Sun, 17 Dec 2000 14:18:56 +0000 (14:18 +0000)] 
Removed some old unused code, found by Moez Mahfoudh

24 years agoAdd support for netfilter in linux-2.4 . netfilter changes the semantics
adrian [Sat, 16 Dec 2000 23:52:29 +0000 (23:52 +0000)] 
Add support for netfilter in linux-2.4 . netfilter changes the semantics
of obtaining the target address of a redirected connection slightly -
it now requires a getsockopt(). Without this code, transparent requests
without a Host: header (ie HTTP/1.0) will not have enough information to
connect to the correct origin server.

The configure option is --enable-linux-netfilter. I don't think its
currently automatic (but then neither is ipf from memory.)

Submitted by: Evan Jones <ejones@netwinder.org>

24 years agoleftover bug from http version changes
wessels [Sat, 9 Dec 2000 12:29:55 +0000 (12:29 +0000)] 
leftover bug from http version changes

24 years agoAndres Kroonmaa suggests yield() on Solaris, rather than sched_yield()
wessels [Sat, 9 Dec 2000 11:43:30 +0000 (11:43 +0000)] 
Andres Kroonmaa suggests yield() on Solaris, rather than sched_yield()
so we don't need to link with librt.a.

24 years agoUndo the check for librt.a. We're going to call yield() on
wessels [Sat, 9 Dec 2000 11:40:58 +0000 (11:40 +0000)] 
Undo the check for librt.a.  We're going to call yield() on
Solaris instead.

24 years agoSome people might want a zero-size cache on purpose. So if cache size
wessels [Sat, 9 Dec 2000 11:16:07 +0000 (11:16 +0000)] 
Some people might want a zero-size cache on purpose.  So if cache size
is zero, don't exit with a fatal warning that cache size is smaller
than memory size.

24 years ago"Null" storage, possibly useful for people who want to proxy only.
wessels [Sat, 9 Dec 2000 11:12:16 +0000 (11:12 +0000)] 
"Null" storage, possibly useful for people who want to proxy only.

24 years agoRobert Collins patch that is supposed to do the right thing for both
wessels [Sat, 9 Dec 2000 10:28:39 +0000 (10:28 +0000)] 
Robert Collins patch that is supposed to do the right thing for both
CVS tree and the packed source tarfile.

24 years agoBack out recent 'store double-check' patch; waiting for background
wessels [Sat, 9 Dec 2000 08:47:18 +0000 (08:47 +0000)] 
Back out recent 'store double-check' patch; waiting for background
version.

24 years agoDW broke the write-clean-logs function with a recent patch that
wessels [Sat, 9 Dec 2000 07:35:01 +0000 (07:35 +0000)] 
DW broke the write-clean-logs function with a recent patch that
wanted to fix a memory leak.  I was passing a NULL pathname
to open().

24 years agoJoe Cooper's hack for broken MSIE clients. They don't send no-cache
wessels [Sat, 9 Dec 2000 07:09:04 +0000 (07:09 +0000)] 
Joe Cooper's hack for broken MSIE clients.  They don't send no-cache
in transparent mode.

24 years agoPatch from Marcos Barreto de Castro <mbdecastro@yahoo.com>. Allows
wessels [Sat, 9 Dec 2000 06:58:08 +0000 (06:58 +0000)] 
Patch from Marcos Barreto de Castro <mbdecastro@yahoo.com>.  Allows
auth process to send back a one-line message.  If the ERR_ACCESS_DENIED
page has %m, it gets replaced with this message.

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