]>
git.ipfire.org Git - thirdparty/squid.git/log
Amos Jeffries [Fri, 18 Jul 2008 11:24:16 +0000 (23:24 +1200)]
Correct HTCP stats. Slipped out with peerAlive conversion
Amos Jeffries [Thu, 17 Jul 2008 15:17:06 +0000 (03:17 +1200)]
Drop incorrect mention of all ACL.
Amos Jeffries [Thu, 17 Jul 2008 12:38:06 +0000 (00:38 +1200)]
Author: Mark Nottingham <mnot@pobox.com>
Bug #2376: Round-Robin becomes unbalanced when a peer dies and comes back
When a peer goes down and then comes back, its round-robin counters aren't
reset, causing it to get a disproportionate amount of traffic until it "catches
up" with the rest of the peers in the round-robin pool.
If it was down for load-related issues, this has the effect of making it more
likely that it will go down again, because it's temporarily handling the load
of the entire pool.
Normally, this isn't a concern, because the number of requests that it can get
out-of-step is relatively small (bounded to how many requests it can be given
before it is considered down -- is this 10 in all cases, or are there corner
cases?), but in an accelerator case where the origin has a process-based
request-handling model, or back-end processes are CPU-intensive, it is.
This patch resets the counters each time a peer changes state.
Amos Jeffries [Thu, 17 Jul 2008 12:27:10 +0000 (00:27 +1200)]
Bug 2348: cache name not set without visible_hostname
Bad logic following successful rDNS test of auto-discovered hostname
was causing it to be erased.
Amos Jeffries [Wed, 16 Jul 2008 12:54:20 +0000 (00:54 +1200)]
Bug 2411: fakeauth_auth is crashing during NTLM auth
A NULL abort test was missing from the Squid-3 version.
Amos Jeffries [Tue, 15 Jul 2008 12:11:23 +0000 (00:11 +1200)]
Languages: Import dictionary templates
dictionary.pot - actual dictionary content template for translation
templates/* - error page templates for constructing distributed files
update-pot.sh - script to update dictionary template if page templates are
added/changed/removed at any point.
Amos Jeffries [Tue, 15 Jul 2008 11:42:48 +0000 (23:42 +1200)]
Supercede b9076 & b9079: old compiler support
Seems the (void) casting method indicated as the best method to fix
unused return warning does not actually work. :-(
Of the other approaches, I'm picking this one used previously by the
SuSE Linux port of Squid as the cleanest.
Amos Jeffries [Tue, 15 Jul 2008 10:03:54 +0000 (22:03 +1200)]
Author: Francesco Chemolli <kinkie@squid-cache.org>
Merge Cache Manager Update branch
Overall view of the changes:
- cachemanager is now a singleton
- list of actions is now a Vector (still not ideal, but at least it
preserves layering)
- added object-based action management interface to cachemgr.
old-style c interface is still available (via method overload)
- cachemgr initialization functions have been moved to each modules'
Init call or (where applicable) constructor. This has the effect of
reducing each module's interface, and to get rid of some module
frameworks' extra initialization work
- fixed tests to work with the new framewor (including the creation of
a small stub in tests/)
- added some documentation
What I left off is:
- change the actionslist from a Vector to a sorted linked-list (need
the generic linked-list class first)
Francesco Chemolli [Mon, 14 Jul 2008 17:08:55 +0000 (19:08 +0200)]
Fixed "make check".
Amos Jeffries [Mon, 14 Jul 2008 16:07:30 +0000 (04:07 +1200)]
Boost English error pages to HTML 4.01 Strict compliance
Same old error layouts and messages. Just the minimal polish required
for current HTML standards compliance at this time.
non-English are not updated at this time.
Francesco Chemolli [Mon, 14 Jul 2008 13:35:09 +0000 (15:35 +0200)]
Merged from trunk.
Refactored peer_sourcehash and peer_userhash
Henrik Nordstrom [Mon, 14 Jul 2008 10:01:25 +0000 (12:01 +0200)]
userhash and sourcehash peer seletction methods
these is effectively just copies of carp.cc with changed keying method
to key on the authenticated username respectiely client source address.
Henrik Nordstrom [Mon, 14 Jul 2008 09:59:46 +0000 (11:59 +0200)]
Merged from trunk
Francesco Chemolli [Sun, 13 Jul 2008 21:40:50 +0000 (23:40 +0200)]
Fix out-of-sourcedir "make check" dependency misdetection.
Fix "make check" by implementing a cachemgr stub to resolve link dependencies.
Francesco Chemolli [Sun, 13 Jul 2008 16:11:34 +0000 (18:11 +0200)]
Merged from trunk
Guido Serassio [Sun, 13 Jul 2008 12:20:42 +0000 (14:20 +0200)]
Windows port: Fix mswin_check_ad_group build error on MinGW and Cygwin
The w32api currently available on MinGW and Cygwin is not complete, and
lacks the needed AD functions for mswin_check_ad_group.
This add to config.test the check for the availability of the needed functions.
Francesco Chemolli [Sun, 13 Jul 2008 08:37:43 +0000 (10:37 +0200)]
Namespace cleanups and dead code removal
Francesco Chemolli [Sat, 12 Jul 2008 16:24:52 +0000 (18:24 +0200)]
Merged from trunk
Francesco Chemolli [Sat, 12 Jul 2008 15:51:24 +0000 (17:51 +0200)]
More namespace cleanup.
Francesco Chemolli [Sat, 12 Jul 2008 15:40:56 +0000 (17:40 +0200)]
Cleaned up the namespace some.
Fixed some broken file permisssions.
Francesco Chemolli [Sat, 12 Jul 2008 15:11:10 +0000 (17:11 +0200)]
More cachemanager initialization reshuffling.
Worked around fubar with cpu_profile initialization call.
Amos Jeffries [Sat, 12 Jul 2008 13:29:25 +0000 (07:29 -0600)]
Fix compile error auto-testing found
Francesco Chemolli [Sat, 12 Jul 2008 08:47:19 +0000 (10:47 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Sat, 12 Jul 2008 06:25:45 +0000 (08:25 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Sat, 12 Jul 2008 06:10:14 +0000 (08:10 +0200)]
Merged from trunk
Francesco Chemolli [Sat, 12 Jul 2008 06:07:28 +0000 (08:07 +0200)]
More cache manager initialization calls reshuffling.
Amos Jeffries [Sat, 12 Jul 2008 04:04:12 +0000 (16:04 +1200)]
Mark TODO on icap_access with authentication
icap_access curently treats AUTH_REQUIRED ACL results as a
false-negative 'fail' result. This is not the desired behavior,
but is not bad enough to be treated as an actual bug at this point.
Henrik Nordstrom [Fri, 11 Jul 2008 20:43:43 +0000 (22:43 +0200)]
The rest of the needed glue needed for peer_userhash and sourcehash to compile
Henrik Nordstrom [Fri, 11 Jul 2008 20:26:46 +0000 (22:26 +0200)]
Merged from trunk
Henrik Nordstrom [Fri, 11 Jul 2008 20:26:11 +0000 (22:26 +0200)]
Syntax error
Henrik Nordstrom [Fri, 11 Jul 2008 20:24:53 +0000 (22:24 +0200)]
Workaround for Linux-2.6.24/2.6.25 netfilter_ipv4.h __u32 issue
Henrik Nordstrom [Fri, 11 Jul 2008 20:20:31 +0000 (22:20 +0200)]
The needed glue and function renames to integrate userhash and soucehash
Henrik Nordstrom [Fri, 11 Jul 2008 20:16:49 +0000 (22:16 +0200)]
Merged from trunk
Henrik Nordstrom [Fri, 11 Jul 2008 20:14:45 +0000 (22:14 +0200)]
Remove a leftover #if USE_CARP
Henrik Nordstrom [Fri, 11 Jul 2008 19:52:24 +0000 (21:52 +0200)]
Install the userhash and sourcehash keys
Henrik Nordstrom [Fri, 11 Jul 2008 19:46:06 +0000 (21:46 +0200)]
copy carp.cc to peer_userhash.cc and peer_sourcehash.cc
Henrik Nordstrom [Fri, 11 Jul 2008 19:32:10 +0000 (21:32 +0200)]
Remove the --disable-carp option, keeping the CARP code always compiled in
this configure option was a relic from the time when CARP was very intrusive,
requiring --enable-carp to be compiled and then chainging parent relations.
The current CARP implementaiton is very non-intrusive and by default enabled
(but not active unless used in squid.conf). There isn't really any good reason
to why one should use --disable-carp today.
Francesco Chemolli [Fri, 11 Jul 2008 19:17:50 +0000 (21:17 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 19:11:44 +0000 (21:11 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 15:50:42 +0000 (17:50 +0200)]
Merged from trunk
Francesco Chemolli [Fri, 11 Jul 2008 15:47:42 +0000 (17:47 +0200)]
More action registration reshuffling.
Amos Jeffries [Fri, 11 Jul 2008 15:15:40 +0000 (03:15 +1200)]
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2253: Assertion in comm closing sequence (pt 1)
Amos Jeffries [Fri, 11 Jul 2008 14:24:10 +0000 (02:24 +1200)]
TestBed: Add master test scripts and some control files
This adds the ./test-builds.sh script which runs over an optional OS
specific control build and a set of layered configurations.
Usage: bash ./test-builds.sh [os-name]
Currently supported OS: debian, ubuntu
A sub-level build script is also added as the main engine of this system.
It takes a pair of control files and attempts a clean build of squid.
Logging as much of the build output as possible for manual oversight.
The component control files are a set of files providing configure options
and environment settings for the build. Their design and use is detailed in:
http://wiki.squid-cache.org/Features/CodeTestBed
Francesco Chemolli [Fri, 11 Jul 2008 12:40:57 +0000 (14:40 +0200)]
More action registration reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 12:34:04 +0000 (14:34 +0200)]
Cache Manager initialization reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 12:01:55 +0000 (14:01 +0200)]
Moved asndb registration with Cache Manager from main to asn initialization.
Fixed missing refactoring of initialization in netdb.
Amos Jeffries [Fri, 11 Jul 2008 10:09:13 +0000 (22:09 +1200)]
More old compiler support.
Several other unused function returns 'cc' complains about and gcc ignores.
Francesco Chemolli [Fri, 11 Jul 2008 05:47:55 +0000 (07:47 +0200)]
Adjusted some debug levels and output messages.
Francesco Chemolli [Fri, 11 Jul 2008 05:41:39 +0000 (07:41 +0200)]
Merged from trunk
Amos Jeffries [Fri, 11 Jul 2008 01:34:36 +0000 (13:34 +1200)]
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2400: ICAP accept mechanism assumes okay result
ACL checks produces an ACCESS_REQ_PROXY_AUTH result but ICAP
result handler assumes any non-zero result means ACCESS_ALLOWED
This can result in many requests being shunted to ICAP incorrently.
Amos Jeffries [Fri, 11 Jul 2008 01:22:57 +0000 (13:22 +1200)]
Better fix for function return ignoring
Francesco Chemolli [Thu, 10 Jul 2008 18:13:35 +0000 (20:13 +0200)]
Last round of initialization refactoring.
CacheManager is not needed anymore in main.cc
Francesco Chemolli [Thu, 10 Jul 2008 18:08:51 +0000 (20:08 +0200)]
Some more caller refactoring
Francesco Chemolli [Thu, 10 Jul 2008 18:02:23 +0000 (20:02 +0200)]
Refactored delay pools registration
Francesco Chemolli [Thu, 10 Jul 2008 17:59:14 +0000 (19:59 +0200)]
Yet more caller refactoring.
Francesco Chemolli [Thu, 10 Jul 2008 17:33:59 +0000 (19:33 +0200)]
More caller refactoring.
Amos Jeffries [Thu, 10 Jul 2008 13:07:46 +0000 (01:07 +1200)]
Ubuntu support: fix gcc complaints about function results
Fixes Ubuntu package build failure.
Francesco Chemolli [Wed, 9 Jul 2008 21:34:13 +0000 (23:34 +0200)]
Refactored actions for http_headers, events, external_acl, fqdncache
to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 21:14:17 +0000 (23:14 +0200)]
Refactored actions for clientdb, comm_select, dns and idns to
Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:33:02 +0000 (22:33 +0200)]
Refactored actions for comm_poll to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:29:24 +0000 (22:29 +0200)]
Refactored actions for kqueue to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:27:17 +0000 (22:27 +0200)]
Refactored actions for epoll to Cache Manager singleton API.
Fixed issue with cbdata initialization prototype.
Francesco Chemolli [Wed, 9 Jul 2008 20:24:31 +0000 (22:24 +0200)]
Refactored actions for cbdata to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:20:14 +0000 (22:20 +0200)]
Refactored actions for "carp" to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 14:38:11 +0000 (16:38 +0200)]
Merged from trunk.
Francesco Chemolli [Wed, 9 Jul 2008 14:28:16 +0000 (16:28 +0200)]
Refactored actions for authentication, I/O, storedir and pconn modules to Cache Manager
singleton API.
Guido Serassio [Wed, 9 Jul 2008 14:21:15 +0000 (16:21 +0200)]
Windows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros
Francesco Chemolli [Wed, 9 Jul 2008 14:08:08 +0000 (16:08 +0200)]
Refactored actions "via_headers", "forw_headers" and "asndb" to Cache Manager
singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 14:00:01 +0000 (16:00 +0200)]
Refactored actions "server_list" and "non_peer" to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 13:51:36 +0000 (15:51 +0200)]
Moved action "config" to singleton API.
Guido Serassio [Wed, 9 Jul 2008 13:12:16 +0000 (15:12 +0200)]
Remove strtok_r() usage because is not available on all platforms
Amos Jeffries [Wed, 9 Jul 2008 11:55:41 +0000 (23:55 +1200)]
Author: Kinkie <gkinkie@gmail.com>
Cleanups: rename List.h to CbDataList.h
include/List.h is in my very humble opinion misleadingly named, as it's
tied to CBDATA semantics and isn't really suited to be used as a generic
container class.
This patch renames the include file to CbDataList.h, and all datatypes
defined there are altered in the same manner.
Guido Serassio [Tue, 8 Jul 2008 09:53:33 +0000 (11:53 +0200)]
Fix typo
Francesco Chemolli [Tue, 8 Jul 2008 06:44:02 +0000 (08:44 +0200)]
Removed comment.
Henrik Nordstrom [Mon, 7 Jul 2008 22:04:12 +0000 (00:04 +0200)]
Minor shell script syntax correction in the --with-build-environment= change
Henrik Nordstrom [Mon, 7 Jul 2008 21:59:57 +0000 (23:59 +0200)]
Make --with-large-files and --with-build-envirnment=default play nice together
in this combination we need to add -D_FILE_OFFSET_BITS=64 just as we do when
not finding a suitable build environment.
Henrik Nordstrom [Mon, 7 Jul 2008 11:53:28 +0000 (13:53 +0200)]
auth_param basic&digest utf8 on|of
new utf8 auth_param option to enable UTF-8 translation of the requests
sent to auth helpers. HTTP uses iso-8859-1 in authentication credentials,
but many authentication backends expects UTF-8 as charset.
Note: This does NOT solve the bigger HTTP problem of authentication using
characters outside iso-8859-1, only simlplifies things a bit by allowing
helpers to operate in UTF-8 even when HTTP operates in iso-8859-1.
An alternative would be to add the translation to each helper.
Amos Jeffries [Mon, 7 Jul 2008 04:58:26 +0000 (16:58 +1200)]
Author: Brad Smith <brad@comstyle.com>
Bug 2396: Correct the opening of the PF device file.
The PF device file is supposed to be opened read-only as of quite a number of
releases ago.
Amos Jeffries [Mon, 7 Jul 2008 02:06:43 +0000 (14:06 +1200)]
Boost error pages HTML standards.
This converts the hard-coded footer section of all error pages to XHTML
or HTML 4.01 Strict compliance. Ready for any improvements done on pages
templates themselves to matche the compliance level.
TODO: upgrade all page templates to match.
Francesco Chemolli [Sun, 6 Jul 2008 18:37:49 +0000 (20:37 +0200)]
Added documentation
Francesco Chemolli [Sat, 5 Jul 2008 23:26:10 +0000 (01:26 +0200)]
Documentation.
Francesco Chemolli [Fri, 4 Jul 2008 19:55:59 +0000 (21:55 +0200)]
Merged from trunk
Francesco Chemolli [Fri, 4 Jul 2008 19:51:21 +0000 (21:51 +0200)]
List of actions is now a first-class protected data member of the cachemgr.
MenuCommand constructor has been extended to be able to reach it easily.
Francesco Chemolli [Fri, 4 Jul 2008 19:14:12 +0000 (21:14 +0200)]
Refactored menu action.
Changed cachemgrStateData to protected.
Francesco Chemolli [Fri, 4 Jul 2008 17:25:20 +0000 (19:25 +0200)]
Shortened action classes' names. Since they're private members now, there's
really no need to keep them long.
Francesco Chemolli [Fri, 4 Jul 2008 17:22:13 +0000 (19:22 +0200)]
Command object classes are now members of the CacheManager class.
Converted offline_toggle command.
Francesco Chemolli [Fri, 4 Jul 2008 17:07:03 +0000 (19:07 +0200)]
Turned reconfigure into command object
Amos Jeffries [Fri, 4 Jul 2008 12:09:33 +0000 (00:09 +1200)]
Cleanups: ident.h not included in daily snapshots
self-explaining really. This should get the file incuded as a source
which needs bundling.
Amos Jeffries [Fri, 4 Jul 2008 10:42:57 +0000 (22:42 +1200)]
Rollback: Windows port: cachemgr.cgi should use closesocket not close
Squid-3 OS-specific portability code makes these obsolete.
Kinkie [Fri, 4 Jul 2008 03:13:17 +0000 (05:13 +0200)]
Merged from trunk
Kinkie [Fri, 4 Jul 2008 03:00:36 +0000 (05:00 +0200)]
Refactored shutdown command from legacy-style to object-style
Kinkie [Fri, 4 Jul 2008 02:49:40 +0000 (04:49 +0200)]
Added variant of registration function which takes in an object rather than
a legacy C function.
Kinkie [Thu, 3 Jul 2008 18:29:20 +0000 (20:29 +0200)]
Moved the ActionTable to a Vector. Still Kludgy, but getting better.
Kinkie [Thu, 3 Jul 2008 15:49:47 +0000 (17:49 +0200)]
Moved Action initialization to object constructors.
Amos Jeffries [Thu, 3 Jul 2008 10:19:27 +0000 (22:19 +1200)]
Kill some magic numbers in string definition
Amos Jeffries [Thu, 3 Jul 2008 03:19:59 +0000 (15:19 +1200)]
Windows port: cachemgr.cgi should use closesocket not close (few more)
This bug was apparently fixed in 2.6 but not in 3.0.
It only affects Windows builds.
This brings Squid-3 cachemgr.cgi up to full Windows support parity with
Squid-2
Amos Jeffries [Thu, 3 Jul 2008 03:04:04 +0000 (15:04 +1200)]
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Port from 2.6: Support for cachemgr sub-actions
see. http://www.squid-cache.org/Versions/v2/2.6/changesets/10659.patch
This brings the Squid-3 cachemgr.cgi up to parity and backwards
compatibility with Squid 2.6 cachemgr.cgi
Amos Jeffries [Thu, 3 Jul 2008 02:51:24 +0000 (14:51 +1200)]
Windows port: cachemgr.cgi should use closesocket not close
This bug was apparently fixed in 2.6 but not in 3.0.
It only affects Windows builds.
Kinkie [Wed, 2 Jul 2008 22:40:26 +0000 (00:40 +0200)]
imported changes from older tree
Amos Jeffries [Wed, 2 Jul 2008 03:49:07 +0000 (15:49 +1200)]
Cleanup: Drop appname and full_appname_string constant globals
appname array only ever held a duplicate of "squid"
- calling it APP_SHORTNAME now instead of a global
full_appname_string only ever held the catenation VERSION"/"PACKAGE macros
- calling it APP_FULLNAME now instead of a global