amosjeffries [Wed, 27 Feb 2008 12:51:04 +0000 (12:51 +0000)]
Author: hno
New myportname ACL for matching the accepting port name
- also documents the name= port option which was previously implemented but unused
- Mention the new myportname acl in the acl section
- Document the addition of myportname acl
amosjeffries [Tue, 26 Feb 2008 07:04:15 +0000 (07:04 +0000)]
Author: hno
Bug #2153: Use the cache_peer name in CARP hashing to support multiple peers on the same host
The cache_peer name= option was introduced some years ago to allow
peers to be named and to suppot multiple peers on the same host/address.
However, carp still used the hostname/address and not the name making
it fail slightly when forwarding to multiple peers on the same address.
amosjeffries [Mon, 25 Feb 2008 10:41:38 +0000 (10:41 +0000)]
Author: hno
Bug #2175: Update valgrind support for valgrind-3.3.0
Valgrind memcheck rearranged the names of it's support macros in
version 3.2.0 to better represent the actual function, and now the
old names has been removed starting with version 3.3.0 causing
build a failure if --with-valgrind-debug is used.
this patch updates Squid to use the new valgrind macro names, and
adds a little glue to be compatible with older valgrind versions
amosjeffries [Mon, 25 Feb 2008 10:39:02 +0000 (10:39 +0000)]
Author: hno
Random authenticaiton failures when using Digest authentication
The stale= propery of the Digest responses sent by Squid indicated far
too often that the nonce was not stale. Contrary to what the RFC recommends
we should only say that the nonce is not stale when it is a valid nonce but
the response did not compute (invalid user or password). In all other
situations we should say that the nonce is stale even if we haven't
validated the response.
amosjeffries [Mon, 25 Feb 2008 09:45:50 +0000 (09:45 +0000)]
Author: hno
Bug #2114: cache memory accounting not working well
Use the page allocator statistics to report cache_mem usage
This patch removes the weak attempt in keeping an byte-exact cache_mem usage
counter, instead using the actual allocated size (but excluding overhead).
This is the same accounting method as used in Squid-2 btw..
amosjeffries [Sun, 24 Feb 2008 18:28:09 +0000 (18:28 +0000)]
Author: hno
Accept some unknown store meta entries without throwing away the rest.
The store meta parser stopped when encountering the first "unknown" entry.
This is bad for extensibility. Should continue parsing what we do know
how to handle.
serassio [Wed, 20 Feb 2008 03:14:49 +0000 (03:14 +0000)]
Author: Klaubert Herr <klaubert@gmail.com>
Patch to strip kerberos realm from username
This patch add a new option to squid_ldap_group to strip kerberos realm from
username received from squid.
This is useful when you make kerberos authentication on squid, and try to
authorize the user using ldap in MS Active Directory, quering for
sAMAccountName.
serassio [Sun, 17 Feb 2008 18:32:22 +0000 (18:32 +0000)]
Windows port: Handle notification of IP address changes for dial-up connections
On Windows 2000 and later, the NotifyAddrChange() function allow a
process to be notified of the changes in the system IP addresses table.
This patch generate a reconfigure request after any notification, this
allow the hot addition/reconfiguration of network interfaces without
manually restart/reconfigure Squid.
amosjeffries [Wed, 6 Feb 2008 13:54:40 +0000 (13:54 +0000)]
Alter caching policy for Dynamic Objects.
- Alters squid caching policy for dynamically generated objects
to allow caching when objects have Cache-Control headers.
- Default policy now follows RFC 2616 section 13.9 exactly as stated.
see http://www.mail-archive.com/squid-dev@squid-cache.org/msg06963.html
rousskov [Tue, 4 Dec 2007 22:20:22 +0000 (22:20 +0000)]
Set default formatting flags for the debugging stream to "fixed" with a
2-digit precision. This avoids log entries such as
Took 3e-06 seconds (3.5e+03 objects/sec).
This change affects pretty much all debugging output, although most messages
will not change in appearance. Compilation errors are possible. The patch was
posted to squid-dev in August 2007. I do not recall any objections but
apparently I forgot to commit it.
wessels [Tue, 27 Nov 2007 05:20:04 +0000 (05:20 +0000)]
Bug 2096: allow pending cache hits when delay pools not compiled in
For some time now, Squid has marked pending cache hits (a cache hit
when e->store_status != STORE_OK) as LOG_TCP_MISS. This was done
so that pending hits do not bypass delay pools. It had the negative
side effect of generating confusing access.log entries because cache
hits get logged as miss.
With this patch, the behavior is reverted when delay pools are not
compiled in. Pending hits will be logged as some kind of TCP_HIT.
Users of delay pools will just have to live with this logging quirk,
although the "forwarded to" field of access.log can always be used
to see if the request was forwarded (a miss) or not (a hit).
wessels [Thu, 15 Nov 2007 23:47:31 +0000 (23:47 +0000)]
More fixes for recent MD5 mixups
- Changing 'xMD5' function name to 'SquidMD5'
- Changing 'MD5_CTX' typedef to 'SquidMD5_CTX'
- Changing 'MD5_DIGEST_CHARS' define to 'SQUID_MD5_DIGEST_LENGTH'
- Changing 'MD5_DIGEST_LENGTH' define to 'SQUID_MD5_DIGEST_LENGTH'
- Removing messy #ifdef logic in include/md5.h that tries to use
the system libraries if available. We'll always use the Squid MD5
routines.
amosjeffries [Thu, 15 Nov 2007 16:18:04 +0000 (16:18 +0000)]
Fix-fix for MD5.
Pre-compiler only tested on Linux and FreeBSD.
This update amends the previous to allow OS which provide a partial MD5
implementation but do not supply correct buffer size (MD5_DIGEST_* macro)
to build using the squid bundled code.
To evade symbol-clashes the squid code is also updated to use xMD5Init,
xMD5Update, xMD5Final and the code sorts out which version is to be used
at compile time from configure options and available sources.
For MacOS X and other broken OS the sys/types.h must also be included on
behalf of the sys/*.h which need it.
rousskov [Wed, 14 Nov 2007 06:09:23 +0000 (06:09 +0000)]
operator != declared outside of the HttpRequestMethod class results in
operator overloading warnings on some platforms. The operator does not appear
to be required.
amosjeffries [Tue, 13 Nov 2007 06:10:37 +0000 (06:10 +0000)]
Author: Pawel Worach <pawel.worach@gmail.com>
Enable squid to lookup /etc/services for named peer ports.
Here is patch so you can use port names from /etc/services in
squid.conf for cache_peers like so:
cache_peer upstream.example.net parent http-cache icpv2
assumng you have something like this in /etc/services
http-cache 8080/tcp
icpv2 3130/udp
This became needed here where we have the same squid.conf's deployed
across a cluster of reverse proxies and we control originserver
addresses via a hosts file and originserver ports via /etc/services
locally on each node.