]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
25 years agoDW:
wessels [Tue, 11 Jan 2000 12:32:56 +0000 (12:32 +0000)] 
DW:
 - Changed global double-linked LRU list to a bunch of LRU lists,
   one for each SwapDir.  This allows us to choose which SwapDir
   cache replacement should occur on.
 - Previously the LRU list links where maintained by storeHashInsert and
   storeHashDelete.  Now they happen in the new storeSwapFileNumberSet
   function.  So entries are added and removed from the list only when
   their swap file numbers are set/cleared.
 - Changed storeMaintainSwapSpace so that it removes objects in
   a round-robin manner.  This should keep the number of unlink
   requests approximately constant across all SwapDir's.
 - Also changed the calculation of 'max_remove' in storeMaintainSwapSpace.
   Now we remove up to the 5 minute average client request rate, with
   a minimum of 10.
 - This new replacement code keeps the disk usage right at the
   high water mark.  Files are agressively removed whenever the
   high water mark is reached.  No files are removed if the usage
   is below the high water mark.  The only purpose for the low water
   mark now is to calculate the time until the next event.
 - Removed the case when we stop opening swapout files because the LRU
   age gets too low.
 - new_StoreEntry now initializes e->swap_file_number to -1.
 -

25 years agoDW:
wessels [Tue, 11 Jan 2000 12:00:29 +0000 (12:00 +0000)] 
DW:
 - Three new functions
 - storeSwapFileNumberSet sets or clears swap_file_number and the
   filemap bit for a StoreEntry.  Replaces much repeated code.
 - storeDirLRUAdd and storeDirLRUAddTail manage the per-SwapDir
   LRU double-linked lists for cache replacement.

25 years agoDW:
wessels [Tue, 11 Jan 2000 11:58:03 +0000 (11:58 +0000)] 
DW:
 - fwdConnectStart should be a lightweight event.  If not, and Squid
   gets really busy, it prevents other critical events from running
   often enough.

25 years agoDW:
wessels [Tue, 11 Jan 2000 11:57:15 +0000 (11:57 +0000)] 
DW:
 - Fixed off-by-one bug in comparison when 'suggestion' exceeds
   fm->max_n_files.
 - Changed file_map_allocate so that it no longer sets the
   available bitmap before returning.  Now its the job of the
   other end to set the bitmap.  "allocate" is probably no longer
   a good descriptive name.

25 years agoDW:
wessels [Tue, 11 Jan 2000 11:37:44 +0000 (11:37 +0000)] 
DW:
 - Set MAX_POLL_TIME back to 10 msec for DISKD.  Better to keep the CPU
   busy than to have delays.

25 years agoDW
wessels [Thu, 6 Jan 2000 06:32:17 +0000 (06:32 +0000)] 
DW
 - User-Agent is taken from HTTP request headers.  It seems silly
   to make it a special case in aclCheck_t and aclCreateChecklist.
   Now acl.c just gets it from request->headers when needed.

25 years agoGlenn
wessels [Thu, 6 Jan 2000 05:44:00 +0000 (05:44 +0000)] 
Glenn
 - Adds counters for disk hits and memory hits.

25 years agogindent
wessels [Wed, 5 Jan 2000 13:26:41 +0000 (13:26 +0000)] 
gindent

25 years agoThis alternate storeDirSelectSwapDir() function is optimized for
wessels [Wed, 5 Jan 2000 13:25:42 +0000 (13:25 +0000)] 
This alternate storeDirSelectSwapDir() function is optimized for
DISKD.  It selects the cache_dir with the fewest outstanding messages
and then uses free space as the tie-breaker.

25 years agoChanged leakFree() to use the __FILE__, __LINE__ macro so we can
wessels [Wed, 5 Jan 2000 13:23:44 +0000 (13:23 +0000)] 
Changed leakFree() to use the __FILE__, __LINE__ macro so we can
print that info when debugging.

25 years agoremove client-side limit on number of idle persistent connections for
wessels [Wed, 5 Jan 2000 13:22:19 +0000 (13:22 +0000)] 
remove client-side limit on number of idle persistent connections for
now; leave a comment in the place where the code was.

25 years agoleakTouch() call from debugging mistakenly got committed
wessels [Wed, 5 Jan 2000 09:20:35 +0000 (09:20 +0000)] 
leakTouch() call from debugging mistakenly got committed

25 years agodefine our assert macro to a NULL function if NODEBUG is defined.
wessels [Tue, 4 Jan 2000 02:39:16 +0000 (02:39 +0000)] 
define our assert macro to a NULL function if NODEBUG is defined.

25 years ago- added storeClientCallback function which replaces a lot of
wessels [Tue, 4 Jan 2000 02:37:47 +0000 (02:37 +0000)] 
- added storeClientCallback function which replaces a lot of
  replicated code with a single call.
- fixed storeClientCopy2 which became severly broken from the
  merge with 2.3 branch.
- reworked the way 'sc->flags.disk_io_pending' is used.  Now
  its only set a cleared in the read/write handlers.

25 years agoRemoved 'mem' as a local variable in storeSwapMetaBuild because
wessels [Tue, 4 Jan 2000 02:33:14 +0000 (02:33 +0000)] 
Removed 'mem' as a local variable in storeSwapMetaBuild because
its only used in an assertion.   If we disable assertions with NODEBUG
then we get 'unused variable' warnings from the compiler.

25 years agoRemoved 'entry' as a local variable in peerGetSomeNeighborReplies because
wessels [Tue, 4 Jan 2000 02:32:33 +0000 (02:32 +0000)] 
Removed 'entry' as a local variable in peerGetSomeNeighborReplies because
its only used in an assertion.   If we disable assertions with NODEBUG
then we get 'unused variable' warnings from the compiler.

25 years agotry 100msec poll time for DISKD
wessels [Tue, 4 Jan 2000 02:25:52 +0000 (02:25 +0000)] 
try 100msec poll time for DISKD

25 years agomerge changes from SQUID_2_3 branch
wessels [Fri, 31 Dec 1999 00:35:47 +0000 (00:35 +0000)] 
merge changes from SQUID_2_3 branch

25 years agoAC_CHECK_TYPE(mtyp_t) needs sys/msg.h
wessels [Mon, 13 Dec 1999 13:01:58 +0000 (13:01 +0000)] 
AC_CHECK_TYPE(mtyp_t) needs sys/msg.h

25 years agochange: stop keeping client connections persistent if we have more than
wessels [Mon, 13 Dec 1999 12:54:54 +0000 (12:54 +0000)] 
change: stop keeping client connections persistent if we have more than
300 client connections open already.

25 years agobug fix: mtype parameter varies in size between different platforms.
wessels [Sun, 12 Dec 1999 00:58:31 +0000 (00:58 +0000)] 
bug fix: mtype parameter varies in size between different platforms.
Digital Unix uses 'mtyp_t' typedef, so we'll try the same.  If not
found, the default is long.

25 years agoSome changes to store hash_table buckets to improve performance.
wessels [Sat, 11 Dec 1999 22:57:42 +0000 (22:57 +0000)] 
Some changes to store hash_table buckets to improve performance.
The default is changed from 50 objects/bucket to 20.  Rewrote
storeKeyHashBuckets() and removed the 64K bucket limit.  Users
report this change makes a very big difference.

25 years agojust alinging DEBUG comment in header
wessels [Sat, 11 Dec 1999 22:56:11 +0000 (22:56 +0000)] 
just alinging DEBUG comment in header

25 years agoFor client-side idle persistent connections, now use the value of
wessels [Sat, 11 Dec 1999 22:55:08 +0000 (22:55 +0000)] 
For client-side idle persistent connections, now use the value of
Config.Timeout.pconn instead of hard-coded 15 seconds.

25 years agomake USE_DISKD configurable in configure script
wessels [Sat, 11 Dec 1999 01:13:47 +0000 (01:13 +0000)] 
make USE_DISKD configurable in configure script

25 years agoAdded a feature so Squid runs a "squid_start" program just before
wessels [Sat, 11 Dec 1999 01:11:02 +0000 (01:11 +0000)] 
Added a feature so Squid runs a "squid_start" program just before
forking the child process in daemon mode.  The "squid_start" script
must be in the same directory as the squid executable.  I'm sure that
will change, however, when people complain.

25 years agodynamic filemap patch from 2.3 branch
wessels [Wed, 1 Dec 1999 11:28:07 +0000 (11:28 +0000)] 
dynamic filemap patch from 2.3 branch
plus print "so far" debug lines more often

25 years agoif errno is unknown (such that there is no string description)
wessels [Wed, 1 Dec 1999 11:25:59 +0000 (11:25 +0000)] 
if errno is unknown (such that there is no string description)
then at least print the errno value.

25 years agomem client fix from 2.3 branch
wessels [Wed, 1 Dec 1999 11:24:27 +0000 (11:24 +0000)] 
mem client fix from 2.3 branch

25 years agoadding to head
wessels [Wed, 20 Oct 1999 05:35:36 +0000 (05:35 +0000)] 
adding to head

25 years agodebug level increase for "Averted multiple fd operation"
wessels [Tue, 5 Oct 1999 04:49:30 +0000 (04:49 +0000)] 
debug level increase for "Averted multiple fd operation"

25 years agomerge
wessels [Tue, 5 Oct 1999 01:10:52 +0000 (01:10 +0000)] 
merge

25 years agomore checks on swap meta TLV values
wessels [Tue, 5 Oct 1999 01:09:54 +0000 (01:09 +0000)] 
more checks on swap meta TLV values

25 years ago2.3 branch merge
wessels [Mon, 4 Oct 1999 11:04:00 +0000 (11:04 +0000)] 
2.3 branch merge

25 years agourl checksum debugging; sometimes URL memory gets trashed
wessels [Wed, 29 Sep 1999 06:22:13 +0000 (06:22 +0000)] 
url checksum debugging; sometimes URL memory gets trashed

25 years agoLots of diskd and storeClientCopy bugs, most of them related
wessels [Wed, 29 Sep 1999 06:10:33 +0000 (06:10 +0000)] 
Lots of diskd and storeClientCopy bugs, most of them related
to callback data.  whew!

25 years agoAdd file and line numbers for CBDATA_DEBUG for cbdataLock and
wessels [Wed, 29 Sep 1999 05:48:46 +0000 (05:48 +0000)] 
Add file and line numbers for CBDATA_DEBUG for cbdataLock and
cbdataUnlock.

25 years agoskip adding objects that will probably be replaced before the next
wessels [Wed, 8 Sep 1999 04:15:11 +0000 (04:15 +0000)] 
skip adding objects that will probably be replaced before the next
digest update.

25 years ago2.3 branch merge
wessels [Mon, 2 Aug 1999 12:18:26 +0000 (12:18 +0000)] 
2.3 branch merge

25 years agoNow works with multiple caches
glenn [Sat, 24 Jul 1999 01:30:00 +0000 (01:30 +0000)] 
Now works with multiple caches

25 years agoNumber of slight corrections
glenn [Fri, 23 Jul 1999 03:03:45 +0000 (03:03 +0000)] 
Number of slight corrections

25 years agoCorrectly deal with multiple caches
glenn [Thu, 22 Jul 1999 04:08:12 +0000 (04:08 +0000)] 
Correctly deal with multiple caches

25 years ago2.4.PRE1
wessels [Tue, 13 Jul 1999 20:52:23 +0000 (20:52 +0000)] 
2.4.PRE1

25 years ago2.3 branch merge
wessels [Tue, 13 Jul 1999 20:50:53 +0000 (20:50 +0000)] 
2.3 branch merge

26 years agogot domain/subdomain reversed in debug output
wessels [Wed, 7 Jul 1999 08:13:40 +0000 (08:13 +0000)] 
got domain/subdomain reversed in debug output

26 years agoremove return statement inserted during diskd testing
wessels [Tue, 6 Jul 1999 03:40:08 +0000 (03:40 +0000)] 
remove return statement inserted during diskd testing

26 years agostrange line
wessels [Tue, 6 Jul 1999 03:27:07 +0000 (03:27 +0000)] 
strange line

26 years agoremove C++ comment delimeters
wessels [Wed, 30 Jun 1999 12:31:18 +0000 (12:31 +0000)] 
remove C++ comment delimeters

26 years agodiskd compile fixes
wessels [Wed, 30 Jun 1999 12:28:58 +0000 (12:28 +0000)] 
diskd compile fixes

26 years agoadding DISKD code
wessels [Wed, 30 Jun 1999 11:49:37 +0000 (11:49 +0000)] 
adding DISKD code

26 years agoalign some common elements in unions -- just in case
wessels [Wed, 30 Jun 1999 11:23:44 +0000 (11:23 +0000)] 
align some common elements in unions -- just in case

26 years agoSome changes that make DISKD code work.
wessels [Wed, 30 Jun 1999 11:19:36 +0000 (11:19 +0000)] 
Some changes that make DISKD code work.

26 years agoSTORE fixes and async cleanup from trying to get ASYNCUFS working
wessels [Sat, 26 Jun 1999 05:37:31 +0000 (05:37 +0000)] 
STORE fixes and async cleanup from trying to get ASYNCUFS working
with FreeBSD 3.1.

26 years agoThe example proxy_auth acl uses the old syntax with a timeout in the
wessels [Fri, 25 Jun 1999 22:21:21 +0000 (22:21 +0000)] 
The example proxy_auth acl uses the old syntax with a timeout in the
proxy_auth ACL. This timeout should be replaced with REQUIRED.

26 years agoreload MIME icons at reconfigure
wessels [Fri, 25 Jun 1999 05:07:09 +0000 (05:07 +0000)] 
reload MIME icons at reconfigure

26 years agoFrom: Henrik Nordstrom <hno@hem.passagen.se>
wessels [Fri, 25 Jun 1999 04:53:43 +0000 (04:53 +0000)] 
From: Henrik Nordstrom <hno@hem.passagen.se>
What this patch does is to discard the pumpMethod() function, and
instead use the fact that the request has a request entity
(content-length present).

clientCheckContentLength() is extended accordingly to have rules for
methods with requires (PUT/POST) / should not (GET/HEAD) have a request
entity.

26 years agomissing %'s on snprintf()!
wessels [Fri, 25 Jun 1999 04:40:21 +0000 (04:40 +0000)] 
missing %'s on snprintf()!

26 years agosquidGuard is unable to do access-control on a per-user basis unless the
wessels [Fri, 25 Jun 1999 04:08:43 +0000 (04:08 +0000)] 
squidGuard is unable to do access-control on a per-user basis unless the
following patch is made...
From: Antony T Curtis <antony@abacus.co.uk>

26 years agoDon't clobbert ctrl.message when the PASS command fails.
wessels [Fri, 25 Jun 1999 03:12:22 +0000 (03:12 +0000)] 
Don't clobbert ctrl.message when the PASS command fails.

It looks like we moved the server response to "cwd_message" after
PASS so that it could be displayed in a directory listing, but
if PASS fails it wiped out important information for the user
(such as alternate FTP sites)

26 years agoadding
wessels [Fri, 25 Jun 1999 02:32:15 +0000 (02:32 +0000)] 
adding

26 years agocompiler bugs
wessels [Fri, 25 Jun 1999 02:26:31 +0000 (02:26 +0000)] 
compiler bugs

26 years agocommitting Dilley's HEAP replacement code
wessels [Fri, 25 Jun 1999 02:19:53 +0000 (02:19 +0000)] 
committing Dilley's HEAP replacement code

26 years agoadding
wessels [Fri, 25 Jun 1999 02:17:02 +0000 (02:17 +0000)] 
adding

26 years agoremove comment about probable leak. I think its fixed
wessels [Sat, 19 Jun 1999 22:36:05 +0000 (22:36 +0000)] 
remove comment about probable leak.  I think its fixed
since we removed the odd commSetSelect() call for new
store interface.

26 years agofixed leak in 2.2 branch
wessels [Sat, 19 Jun 1999 22:34:36 +0000 (22:34 +0000)] 
fixed leak in 2.2 branch

26 years agoRFC 2518 WEBDAV request methods
wessels [Fri, 18 Jun 1999 10:24:59 +0000 (10:24 +0000)] 
RFC 2518 WEBDAV request methods

26 years agoinvented snmp_var_new_integer() because I think snmp memory allocation belongs in...
wessels [Fri, 18 Jun 1999 04:20:35 +0000 (04:20 +0000)] 
invented snmp_var_new_integer() because I think snmp memory allocation belongs in snmplib

26 years agoUse MEM_SNMP_SNINT type for allocating SNMP reply stuff
wessels [Fri, 18 Jun 1999 02:23:08 +0000 (02:23 +0000)] 
Use MEM_SNMP_SNINT type for allocating SNMP reply stuff

26 years agoreword -N usage description
wessels [Thu, 17 Jun 1999 11:02:21 +0000 (11:02 +0000)] 
reword -N usage description

26 years agoset reply->hdr_sz for these buggers so store.log makes sense
wessels [Thu, 17 Jun 1999 10:04:04 +0000 (10:04 +0000)] 
set reply->hdr_sz for these buggers so store.log makes sense

26 years agoAdded maximum_icp_query_timeout option because John Line sometimes
wessels [Thu, 17 Jun 1999 04:10:36 +0000 (04:10 +0000)] 
Added maximum_icp_query_timeout option because John Line sometimes
sees dynamic query timeouts in the range of 6-7 seconds.

26 years agoAdded redirector_bypass option, written for Deere and Company
wessels [Thu, 17 Jun 1999 03:23:31 +0000 (03:23 +0000)] 
Added redirector_bypass option, written for Deere and Company

26 years agoonoff.persistent_client_posts is old and unused
wessels [Thu, 17 Jun 1999 03:22:14 +0000 (03:22 +0000)] 
onoff.persistent_client_posts is old and unused

26 years agoIgnore an ICP message if the ICP length is not equal to the number
wessels [Mon, 14 Jun 1999 09:02:06 +0000 (09:02 +0000)] 
Ignore an ICP message if the ICP length is not equal to the number
of bytes read.

26 years agoGRE code removal, allow it to be done in the kernel
glenn [Sat, 12 Jun 1999 05:30:36 +0000 (05:30 +0000)] 
GRE code removal, allow it to be done in the kernel

26 years ago2.2 branch merge
wessels [Sat, 12 Jun 1999 04:40:32 +0000 (04:40 +0000)] 
2.2 branch merge

26 years agohierarchy logging was broken for SSL
wessels [Fri, 11 Jun 1999 03:06:23 +0000 (03:06 +0000)] 
hierarchy logging was broken for SSL

26 years agoadding
wessels [Fri, 11 Jun 1999 02:18:22 +0000 (02:18 +0000)] 
adding

26 years agoFinally finished the bit of HTCP that checks the query HTTP headers
wessels [Thu, 10 Jun 1999 12:10:30 +0000 (12:10 +0000)] 
Finally finished the bit of HTCP that checks the query HTTP headers
for freshness.

26 years ago- the max-age cc option may be preceded with a comma like any other option
rousskov [Mon, 31 May 1999 11:03:35 +0000 (11:03 +0000)] 
- the max-age cc option may be preceded with a comma like any other option

26 years agowhy did I remove Makefile.in in distclean target??
wessels [Thu, 27 May 1999 11:56:31 +0000 (11:56 +0000)] 
why did I remove Makefile.in in distclean target??

26 years agoFreeBSD's pthreads breaks dup2(). This means we can't use dup2()
wessels [Thu, 27 May 1999 09:26:10 +0000 (09:26 +0000)] 
FreeBSD's pthreads breaks dup2().  This means we can't use dup2()
to try to find SQUID_MAXFD in configure.  To get around the bug,
we make a temporary LDFLAGS string and remove -pthread.

26 years agoprogress on async-UFS code
wessels [Thu, 27 May 1999 09:21:37 +0000 (09:21 +0000)] 
progress on async-UFS code

26 years agochange frequency of validated-so-far output
wessels [Thu, 27 May 1999 09:13:12 +0000 (09:13 +0000)] 
change frequency of validated-so-far output

26 years agocompile bugs
wessels [Thu, 27 May 1999 08:42:31 +0000 (08:42 +0000)] 
compile bugs

26 years agocommitting first stab at async disk IO with new disk storage interface
wessels [Thu, 27 May 1999 02:41:15 +0000 (02:41 +0000)] 
committing first stab at async disk IO with new disk storage interface

26 years agofile_open() is entirely blocking now -- there is no need for the
wessels [Wed, 26 May 1999 23:07:56 +0000 (23:07 +0000)] 
file_open() is entirely blocking now -- there is no need for the
callback function arguments.

26 years agorename SwapDir->obj.log to SwapDir->log.write
wessels [Wed, 26 May 1999 12:48:06 +0000 (12:48 +0000)] 
rename SwapDir->obj.log to SwapDir->log.write
storeUfsFilenoBelongsHere() can be static

26 years agocleanup after actually reading it
wessels [Wed, 26 May 1999 12:40:43 +0000 (12:40 +0000)] 
cleanup after actually reading it

26 years agoadded big store system chunk
wessels [Wed, 26 May 1999 12:24:21 +0000 (12:24 +0000)] 
added big store system chunk

26 years agoSome fixes for swapping out objects that are in STORE_OK state. Need
wessels [Wed, 26 May 1999 11:01:05 +0000 (11:01 +0000)] 
Some fixes for swapping out objects that are in STORE_OK state.  Need
to make sure that we really write all the data and queue the
swapout file for closing.

DO NOT allow swapout of non-special objects during store rebuilding
phase.  This greatly speeds up the rebuild process and prevents
large memory consumption from objects that want to be deleted but
must wait until validation completes.

26 years agoAnother while loop in storeCleanup() event so that we do at least
wessels [Wed, 26 May 1999 10:58:52 +0000 (10:58 +0000)] 
Another while loop in storeCleanup() event so that we do at least
50 entries per call, instead of just one hash bucket which might
only have a handful of objects.

26 years agoBuffer the StoreEntry when building a mime icon object.
wessels [Wed, 26 May 1999 10:57:46 +0000 (10:57 +0000)] 
Buffer the StoreEntry when building a mime icon object.
Also set the ENTRY_SPECIAL flag before calling storeComplete so
that it gets swapped out with the new no-swapout-during-rebuild
scheme.

26 years agolooks like storeEntryDump 'e' arg can be const
wessels [Wed, 26 May 1999 10:36:55 +0000 (10:36 +0000)] 
looks like storeEntryDump 'e' arg can be const

26 years agoSTORE_SWAP_BUF and VM_WINDOW_SZ are the same as DISK_PAGE_SIZE. Having
wessels [Wed, 26 May 1999 09:18:15 +0000 (09:18 +0000)] 
STORE_SWAP_BUF and VM_WINDOW_SZ are the same as DISK_PAGE_SIZE.  Having
different names is only confusing.

26 years agoTwo storeSwapOut() changes:
wessels [Wed, 26 May 1999 09:08:12 +0000 (09:08 +0000)] 
Two storeSwapOut() changes:

1) with new store-FS scheme, we don't get write callbacks.  This means
we were getting some objects "stuck" because we had, say 32K in memory,
but only wrote 8K in storeSwapOut() and there was no signal to make
us write another block.  Now we write as many blocks as we can,
instead of just one.

2) Re-fixed the case where storeSwapOut() gets called because the
store_status has changed to STORE_OK, but there is no data to swap
out.  Now close the swapout file, as done at the end of storeSwapOut().

26 years agoMoved ->fd to UFS specific section of storeIOState structure
wessels [Wed, 26 May 1999 04:18:20 +0000 (04:18 +0000)] 
Moved ->fd to UFS specific section of storeIOState structure

26 years agouse doubles for higher precision elapsed time calculations
wessels [Wed, 26 May 1999 04:10:13 +0000 (04:10 +0000)] 
use doubles for higher precision elapsed time calculations

26 years agoMoved storeDirClean() into UFS-specific module.
wessels [Wed, 26 May 1999 04:05:47 +0000 (04:05 +0000)] 
Moved storeDirClean() into UFS-specific module.
random other ufs/api mods

26 years agowrong function argument
wessels [Wed, 26 May 1999 02:38:06 +0000 (02:38 +0000)] 
wrong function argument