]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
16 years agoThe needed glue and function renames to integrate userhash and soucehash
Henrik Nordstrom [Fri, 11 Jul 2008 20:20:31 +0000 (22:20 +0200)] 
The needed glue and function renames to integrate userhash and soucehash

16 years agoMerged from trunk
Henrik Nordstrom [Fri, 11 Jul 2008 20:16:49 +0000 (22:16 +0200)] 
Merged from trunk

16 years agoRemove a leftover #if USE_CARP
Henrik Nordstrom [Fri, 11 Jul 2008 20:14:45 +0000 (22:14 +0200)] 
Remove a leftover #if USE_CARP

16 years agoInstall the userhash and sourcehash keys
Henrik Nordstrom [Fri, 11 Jul 2008 19:52:24 +0000 (21:52 +0200)] 
Install the userhash and sourcehash keys

16 years agocopy carp.cc to peer_userhash.cc and peer_sourcehash.cc
Henrik Nordstrom [Fri, 11 Jul 2008 19:46:06 +0000 (21:46 +0200)] 
copy carp.cc to peer_userhash.cc and peer_sourcehash.cc

16 years agoRemove the --disable-carp option, keeping the CARP code always compiled in
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.

16 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
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)

16 years agoTestBed: Add master test scripts and some control files
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

17 years agoMore old compiler support.
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.

17 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
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.

17 years agoBetter fix for function return ignoring
Amos Jeffries [Fri, 11 Jul 2008 01:22:57 +0000 (13:22 +1200)] 
Better fix for function return ignoring

17 years agoUbuntu support: fix gcc complaints about function results
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.

17 years agoWindows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros
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

17 years agoRemove strtok_r() usage because is not available on all platforms
Guido Serassio [Wed, 9 Jul 2008 13:12:16 +0000 (15:12 +0200)] 
Remove strtok_r() usage because is not available on all platforms

17 years agoAuthor: Kinkie <gkinkie@gmail.com>
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.

17 years agoFix typo
Guido Serassio [Tue, 8 Jul 2008 09:53:33 +0000 (11:53 +0200)] 
Fix typo

17 years agoMinor shell script syntax correction in the --with-build-environment= change
Henrik Nordstrom [Mon, 7 Jul 2008 22:04:12 +0000 (00:04 +0200)] 
Minor shell script syntax correction in the --with-build-environment= change

17 years agoMake --with-large-files and --with-build-envirnment=default play nice together
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.

17 years agoauth_param basic&digest utf8 on|of
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.

17 years agoAuthor: Brad Smith <brad@comstyle.com>
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.

17 years agoBoost error pages HTML standards.
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.

17 years agoCleanups: ident.h not included in daily snapshots
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.

17 years agoRollback: Windows port: cachemgr.cgi should use closesocket not close
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.

17 years agoKill some magic numbers in string definition
Amos Jeffries [Thu, 3 Jul 2008 10:19:27 +0000 (22:19 +1200)] 
Kill some magic numbers in string definition

17 years agoWindows port: cachemgr.cgi should use closesocket not close (few more)
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

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
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

17 years agoWindows port: cachemgr.cgi should use closesocket not close
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.

17 years agoCleanup: Drop appname and full_appname_string constant globals
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

17 years agoCleanups: Shuffle ident API into its own header file
Amos Jeffries [Wed, 2 Jul 2008 02:46:08 +0000 (14:46 +1200)] 
Cleanups: Shuffle ident API into its own header file

This reduces a few more links to protos.h by moving the small ident.c
requirements into ident.h in preparation for modulising that component.

17 years agoWindows port: Fix various build errors
Guido Serassio [Tue, 1 Jul 2008 10:40:13 +0000 (12:40 +0200)] 
Windows port: Fix various build errors

17 years agoWindows port: always shutdown winsocks on program termination
Guido Serassio [Mon, 30 Jun 2008 17:02:39 +0000 (19:02 +0200)] 
Windows port: always shutdown winsocks on program termination

WSACleanup() should called always before program termination.
Also ran indent on squid_radius_auth.c.

17 years agoWindows port: configure enhancements on MinGW
Guido Serassio [Mon, 30 Jun 2008 16:46:20 +0000 (18:46 +0200)] 
Windows port: configure enhancements on MinGW

- Really detect FD_SETSIZE on MinGW
- Detect real size of TCP and UDP buffers on MinGW
- Check for winsock.h or winsock2.h availability on MinGW

17 years agoFix build error on Solaris using gcc and --with-large-files
Guido Serassio [Mon, 30 Jun 2008 16:27:12 +0000 (18:27 +0200)] 
Fix build error on Solaris using gcc and --with-large-files

On Solaris getconf returns for CFLAGS and LDFLAGS -xarch=generic64 option, but
this option is supported only by Sun cc, so we need to We need to replace it
with -m64 gcc equivalent option

17 years agoBug 2141: Netmasks need to die a clean death (part 1)
Amos Jeffries [Mon, 30 Jun 2008 13:16:14 +0000 (01:16 +1200)] 
Bug 2141: Netmasks need to die a clean death (part 1)

Update ACLIP output display to show CIDR instead of netmask format.
 With IPv6 masks can be long strings of ff* not easy to read. This makes
 them show up as CIDR masks appropriate to the base address type.

Also removes some duplicate code in output (debug show and config mgr).

TODO: parsing updates, in-memory types etc.

17 years agoWindows port: add option for control of IP address changes notification in squid...
Guido Serassio [Mon, 30 Jun 2008 12:52:36 +0000 (14:52 +0200)] 
Windows port: add option for control of IP address changes notification in squid.conf

On Windows Squid by default will monitor IP address changes and will
reconfigure itself after any detected event. This is very useful for
proxies connected to internet with dial-up interfaces.
In some cases (a Proxy server acting as VPN gateway is one) it could be
desiderable to disable this behaviour.

Also fixed build error on Cygwin

17 years agoWindows port: forward port of 2.7 lib functions updates
Guido Serassio [Mon, 30 Jun 2008 10:57:35 +0000 (12:57 +0200)] 
Windows port: forward port of 2.7 lib functions updates

- Implement crypt() on Windows
- Implement getopt() on Windows
- Implement dirent-style opendir(), readdir(), closedir(),
  rewinddir(), seekdir() and telldir() on Windows

17 years agoChanged text file format from DOS to Unix
Guido Serassio [Sun, 29 Jun 2008 18:46:04 +0000 (20:46 +0200)] 
Changed text file format from DOS to Unix

17 years agoAdded missing reference to reconfigure cachemgr action in squid.conf
Guido Serassio [Sun, 29 Jun 2008 18:22:27 +0000 (20:22 +0200)] 
Added missing reference to reconfigure cachemgr action in squid.conf

17 years agoChanged text file format from DOS to Unix
Guido Serassio [Sun, 29 Jun 2008 18:15:32 +0000 (20:15 +0200)] 
Changed text file format from DOS to Unix

17 years agoRollback rev 9046-9047. Not quite right.
Amos Jeffries [Sun, 29 Jun 2008 13:03:44 +0000 (01:03 +1200)] 
Rollback rev 9046-9047. Not quite right.

17 years agoMissed a casting
Amos Jeffries [Sun, 29 Jun 2008 11:53:06 +0000 (23:53 +1200)] 
Missed a casting

17 years agoMemBuf may be empty when items are append()'ed.
Amos Jeffries [Sun, 29 Jun 2008 11:20:14 +0000 (23:20 +1200)] 
MemBuf may be empty when items are append()'ed.

- Fixes append() to handle the side case where the buffer is empty
  just after initialization and before any calls to Printf()

This allows several performance optimisations to follow, since append()
utilizes fast memcpy() and Printf() uses the slower snprintf()

17 years agoSome debugs and auto-doc updates in forwarding
Amos Jeffries [Sun, 29 Jun 2008 02:03:22 +0000 (14:03 +1200)] 
Some debugs and auto-doc updates in forwarding

17 years agoAuthor: Alter <alter@alter.org.ua>
Amos Jeffries [Wed, 25 Jun 2008 12:21:03 +0000 (00:21 +1200)] 
Author: Alter <alter@alter.org.ua>
Bug 2301: Regression: Log format request/reply size options

MFC: logging HTTP-request size

I've made patch to Squid 2.5-stable14 (r4), which enables logging of
http-request size and/or total request+reply size.
Patch extends 'logformat' option of squid.conf. '>st' and 'st' can be
used to log request size and total size respectively. If 'st' is used
instead of '<st', squid will log total request size
instead of reply size to access.log. For example

logformat altsquid %ts.%03tu %6tr %>a %Ss/%03Hs %st %rm %ru %un %Sh/%<A %mt
access_log /usr/local/squid/logs/access.log altsquid

17 years agoBug #2365: cachemgr.cgi fails to HTML encode config dumps properly
Henrik Nordstrom [Tue, 24 Jun 2008 22:39:16 +0000 (00:39 +0200)] 
Bug #2365: cachemgr.cgi fails to HTML encode config dumps properly

log_format and a couple other directives may contain HTML reserved characters
such as < >, and these needs to be HTML quoted in the output.

17 years agoBug 2383: part 2: Fix IPv6 --with-* option testing
Amos Jeffries [Tue, 24 Jun 2008 12:58:36 +0000 (00:58 +1200)] 
Bug 2383: part 2: Fix IPv6 --with-* option testing

A small piece of bad logic in the configure code meant the options were
never tested or configured.

Also cleans up the displayed descriptions a little.

17 years agoImproved const correctness in IPAddress.
Amos Jeffries [Tue, 24 Jun 2008 11:20:15 +0000 (23:20 +1200)] 
Improved const correctness in IPAddress.

17 years agoBug 2383: part 1: Typo in v6 special-case if-def
Amos Jeffries [Tue, 24 Jun 2008 11:13:03 +0000 (23:13 +1200)] 
Bug 2383: part 1: Typo in v6 special-case if-def

Typo in IPV6_SPECIAL_V4MAPPING / IPV6_SPECIAL_MAPPED caused the #if to
never be compiled.

17 years agoAuthor: Mark Nottingham <mnot@pobox.com>
Amos Jeffries [Tue, 24 Jun 2008 01:19:31 +0000 (13:19 +1200)] 
Author: Mark Nottingham <mnot@pobox.com>
Bug #2388: acl documentation cleanup

Squid.conf for ACL has a few small errors that might lead to confusion; this
fixes them and makes it a bit more consistent.

17 years agoBug 1566 (also bug 975): esi:include aborts with lock assert
Amos Jeffries [Fri, 20 Jun 2008 05:14:34 +0000 (17:14 +1200)] 
Bug 1566 (also bug 975): esi:include aborts with lock assert

Proper fix requires callers inserting HTTPMSGLOCK() when the base rep
pointers are set, and HTTPMSGUNLOCK() macros when done. The lock/unlock
mechanism will take care of garbage collection in the background if used
properly.

The function this patches has no need to perform any of that itself
either way (it's a * not a ** ptr parameter so _cannot_ be safely deleted).

I'm cementing the temporary fix for 975 and 1566 as a permanent one and
documenting the correct requirements of the functions callers to prevent
memory leaks.

If leaks are found it will be separate bugs in the calling code related
to bad refcounting.

17 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Fri, 20 Jun 2008 04:43:01 +0000 (16:43 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug #425 fix: purge matching entries on PUT, POST, and DELETE requests.

This patch focuses on purging URLs in Location and Content-Location headers
of PUT, POST, and DELETE responses.

Purging Request-URIs was already supported for PUT and DELETE, but needed
polishing. I moved all code related to method-based purging into one Server
method and outside the neighbors_do_private_keys guard (and store entry key is
private guard). We may purge more related entries than before.

I also implemented Amos' TODO to purge related entries when receiving a
request with an unknown request method. Again, we may now purge more related
entries than before.

My primary concern about the polishing part of the change is that the old code
used to check that the cache entry being purged is not the current entry:
        assert(e != pe);
The new code does not check for that but appears to work in my limited tests.
I am not quite sure why we needed that check if all purging methods are not
cachable anyway. Perhaps it is unsafe to call e->release() for some entries?

TODO: We cannot find Vary-controlled entries by URL and, hence, we cannot
purge them, right?

TODO: Optimize method category "search" in HttpRequestMethod by using
precomputed method_id:category maps.

17 years agoBug 2384: Assertion failed on ESI page.
Amos Jeffries [Fri, 20 Jun 2008 03:31:58 +0000 (15:31 +1200)] 
Bug 2384: Assertion failed on ESI page.

ESI was deleting its reference to child HTTP requests instead of unlocking
them. Even if they were in use elsewhere.

TODO: A better approach may be to cancel the dependent child request
entirely and close its resources down in a chain-reaction.

17 years agoNetfilter headers not detected properly.
Amos Jeffries [Thu, 19 Jun 2008 12:48:04 +0000 (00:48 +1200)] 
Netfilter headers not detected properly.

ip(6)tables v1.4.0 was released with a small bug in its header dependency.
This caused our configure checks for its usability to fail.

Also a mismatch between the code #if .. #endif and configure definitions
caused some pre-compiler logic failures on GCC 4.3.

This fixes both issues and makes Squid operable again when built against
Netfilter xtables v1.4.0

17 years agoCorrect spelling of WCCPv2 dst_port_hash to match the source
Henrik Nordstrom [Thu, 19 Jun 2008 12:23:09 +0000 (14:23 +0200)] 
Correct spelling of WCCPv2 dst_port_hash to match the source

17 years agoReject ridiculously large ASN.1 lengths
Henrik Nordstrom [Wed, 18 Jun 2008 18:57:54 +0000 (20:57 +0200)] 
Reject ridiculously large ASN.1 lengths
------------- This line and the following will be ignored --------------

modified:
  snmplib/asn1.c

17 years agoFix SNMP reporting of counters with a value >= 0xFF800000
Henrik Nordstrom [Wed, 18 Jun 2008 18:49:32 +0000 (20:49 +0200)] 
Fix SNMP reporting of counters with a value >= 0xFF800000

The ASN.1 encoding of unsigned integers incorrectly compressed the value
as if it was a signed integer, truncating leading 0xFF octest, causing
0xFF800000 to be send ax 0x800000, 0xFFFF8000 as 0x8000 etc..

17 years agoAuthor: JPP <jpp1@frws.com>
Amos Jeffries [Tue, 17 Jun 2008 10:30:07 +0000 (22:30 +1200)] 
Author: JPP <jpp1@frws.com>
logformat docs contain extra whitespace

They also failed to mention that the displayed formats are built-in and
do not need to be defined.

17 years agoNo need to snapshot squid-2.6 any more
Henrik Nordstrom [Sun, 15 Jun 2008 04:56:36 +0000 (22:56 -0600)] 
No need to snapshot squid-2.6 any more

17 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Fri, 13 Jun 2008 14:30:53 +0000 (02:30 +1200)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2206: no Proxy-Authenticate header in 407 responses

Proper handling of Hop-By-Hop headers according to RFC2616
(drop them!) special handling given to Auth headers on pass-thru cases.

17 years agoSync ChangeLog with 3.0 and current content
Amos Jeffries [Fri, 13 Jun 2008 14:05:44 +0000 (02:05 +1200)] 
Sync ChangeLog with 3.0 and current content

17 years agoBug 2323 (again): basic auth leaks memory
Amos Jeffries [Fri, 13 Jun 2008 13:36:53 +0000 (01:36 +1200)] 
Bug 2323 (again): basic auth leaks memory

This round was caused by a few missing unlocks causing objects to be
incorrectly identified as in-use during garbage collection.

Future cleanups really need to make these objects true RefCounted.

17 years agoAuthor: Mike Mitchell <Mike.Mitchell@sas.com>
Amos Jeffries [Thu, 12 Jun 2008 12:49:29 +0000 (00:49 +1200)] 
Author: Mike Mitchell <Mike.Mitchell@sas.com>
Bug #2241: weights not applied properly in round-robin peer selection

17 years agoVarious bugs - GCC 4.3 detected
Amos Jeffries [Thu, 12 Jun 2008 12:36:31 +0000 (00:36 +1200)] 
Various bugs - GCC 4.3 detected

17 years agoCleanup parenthesis and formatting in some ZPH code.
Amos Jeffries [Wed, 11 Jun 2008 01:39:05 +0000 (13:39 +1200)] 
Cleanup parenthesis and formatting in some ZPH code.

17 years agoTypo in documentation
Amos Jeffries [Mon, 9 Jun 2008 02:45:44 +0000 (14:45 +1200)] 
Typo in documentation

17 years agoAuthor: Tsantilas Christos <chtsanti@users.sourceforge.net>
Amos Jeffries [Mon, 9 Jun 2008 01:58:19 +0000 (13:58 +1200)] 
Author: Tsantilas Christos <chtsanti@users.sourceforge.net>
update to follow_x_forwarded_for

Small update to fix compile error when XFF not enabled.

17 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sat, 7 Jun 2008 05:20:05 +0000 (17:20 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 1628: Port follow_x_forwarded_for from 2.6

17 years agoPolicy change for negative_ttl
Amos Jeffries [Thu, 5 Jun 2008 12:01:09 +0000 (00:01 +1200)] 
Policy change for negative_ttl

1) wraps all negative_ttl code to now require --enable-http-violations

2) Makes negative_ttl when used, only apply to cached objects without explicit
neg-TTL information.

3) Changes default value to 0, from the previous setting at 5 minutes.

4) Alters negative_ttl documentation to cover the above behavior changes

17 years agoUpdate ACL docs
Amos Jeffries [Thu, 5 Jun 2008 03:54:46 +0000 (15:54 +1200)] 
Update ACL docs

- Some regex types were missing -i mentions.
- Altered auth type to mention intercept alongside transparent
  now that they are distinct in squid
- Also cosmetic re-order of a few items to provide a some type grouping

17 years agoBasic Auth auto-docs and debugs cleanups.
Amos Jeffries [Sun, 1 Jun 2008 10:48:11 +0000 (22:48 +1200)] 
Basic Auth auto-docs and debugs cleanups.

17 years agoFix possible buffer overrun in rfc1738 encoder
Amos Jeffries [Sun, 1 Jun 2008 10:25:47 +0000 (22:25 +1200)] 
Fix possible buffer overrun in rfc1738 encoder

17 years agoMake cachemgr.cgi protocol agnostic in IPv6-mode.
Amos Jeffries [Sun, 1 Jun 2008 09:11:51 +0000 (21:11 +1200)] 
Make cachemgr.cgi protocol agnostic in IPv6-mode.

17 years agoSimplify linux capabilities version check to avoid repeated #ifdefs cluttering the...
Henrik Nordstrom [Fri, 30 May 2008 15:29:10 +0000 (17:29 +0200)] 
Simplify linux capabilities version check to avoid repeated #ifdefs cluttering the code

17 years agoBug 2364: Add note that negative_ttl is a HTTP violation
Amos Jeffries [Thu, 29 May 2008 02:26:55 +0000 (14:26 +1200)] 
Bug 2364: Add note that negative_ttl is a HTTP violation

17 years agoBug 2358: FD_SIZELIMIT redefined FBSD 7.0
Amos Jeffries [Tue, 27 May 2008 14:01:49 +0000 (02:01 +1200)] 
Bug 2358: FD_SIZELIMIT redefined FBSD 7.0

config.h is still REQUIRED minimum first include for any .c/.cc file
even if the old squid.h can be removed.

Why?  the portability code is needed!

17 years agoBug 2358: FD_SIZELIMIT redefined FBSD 7.0
Amos Jeffries [Tue, 27 May 2008 13:29:18 +0000 (01:29 +1200)] 
Bug 2358: FD_SIZELIMIT redefined FBSD 7.0

config.h is still REQUIRED minimum first include for any .c/.cc file
even if the old squid.h can be removed.

Why?  the portability code is needed!

17 years agoBug #1955: Clarify refresh_pattern override-expire option
Henrik Nordstrom [Mon, 26 May 2008 22:28:50 +0000 (00:28 +0200)] 
Bug #1955: Clarify refresh_pattern override-expire option

override-expire applies to both Expires and CC max-age, but comments
only mention Expires..

17 years agomake dist needs trunk to be bootstrapped first
Henrik Nordstrom [Mon, 26 May 2008 07:24:25 +0000 (01:24 -0600)] 
make dist needs trunk to be bootstrapped first

17 years agoProperly dist testheaders.sh
Henrik Nordstrom [Mon, 26 May 2008 07:21:47 +0000 (01:21 -0600)] 
Properly dist testheaders.sh

17 years agoCleanups: Replace cnfig parser gotos with do-while loop.
Amos Jeffries [Fri, 23 May 2008 12:40:03 +0000 (00:40 +1200)] 
Cleanups: Replace cnfig parser gotos with do-while loop.

17 years agoCleanups: Replace a series of URN handler gotos with a simple sub-function.
Amos Jeffries [Fri, 23 May 2008 12:32:27 +0000 (00:32 +1200)] 
Cleanups: Replace a series of URN handler gotos with a simple sub-function.

17 years agoAmendment to capability debugs
Amos Jeffries [Fri, 23 May 2008 06:41:54 +0000 (18:41 +1200)] 
Amendment to capability debugs

17 years agoAuthor: Bojan Smojver <bojan@rexursive.com>
Amos Jeffries [Fri, 23 May 2008 06:28:32 +0000 (18:28 +1200)] 
Author: Bojan Smojver <bojan@rexursive.com>
Bug 2350: Memory allocation problem in restoreCapabilities(), tools.cc

Part 2 - Kernel folks are suggesting that the code in tools.cc should test
         _LINUX_CAPABILITY_VERSION_1 where possible

17 years agoSilence secondary errors on fatal shutdowns.
Amos Jeffries [Thu, 22 May 2008 12:05:45 +0000 (00:05 +1200)] 
Silence secondary errors on fatal shutdowns.

This patch causes fatal() errors to set the shutdown flag before aborting.
The result of this is that secondary errors not related to the fatal condition
but caused during the shutdown sequence no longer confuse the error traces.

It also cleans up a little broken whitespace formatting in the snmp_core.cc

17 years agoUpdate interception documentation and debugging.
Amos Jeffries [Thu, 22 May 2008 03:05:40 +0000 (15:05 +1200)] 
Update interception documentation and debugging.

Adds better documentation on effects of intercept and tproxy flags.

Alters debugging to clearly log components enabled/disabled on startup and
reconfigure of http(s)_port's using interception flags.

17 years agoAdd debugging of negative Interception result data.
root [Wed, 21 May 2008 02:47:16 +0000 (14:47 +1200)] 
Add debugging of negative Interception result data.

17 years agoBug #2350: Memory allocation problem in restoreCapabilities()
Henrik Nordstrom [Tue, 20 May 2008 20:10:48 +0000 (22:10 +0200)] 
Bug #2350: Memory allocation problem in restoreCapabilities()

17 years agoAuto-document some of http.cc
Amos Jeffries [Tue, 20 May 2008 13:29:24 +0000 (01:29 +1200)] 
Auto-document some of http.cc

17 years agoMerged from trunk
Amos Jeffries [Tue, 20 May 2008 13:26:56 +0000 (01:26 +1200)] 
Merged from trunk

17 years agoCorrect cachemgr.conf installation rule syntax errors
Henrik Nordstrom [Sat, 17 May 2008 19:28:01 +0000 (21:28 +0200)] 
Correct cachemgr.conf installation rule syntax errors

17 years agosquid_raius_auth needs to include radius-util.h not util.h
Henrik Nordstrom [Sat, 17 May 2008 19:15:05 +0000 (21:15 +0200)] 
squid_raius_auth needs to include radius-util.h not util.h

17 years agoAdded config.test to mswin_check_ad_group
Guido Serassio [Sat, 17 May 2008 11:41:47 +0000 (13:41 +0200)] 
Added config.test to mswin_check_ad_group

17 years agoUpdated mswin_check_lm_group documentation
Guido Serassio [Sat, 17 May 2008 11:37:06 +0000 (13:37 +0200)] 
Updated mswin_check_lm_group documentation

17 years agoWindows port: Added new mswin_check_ad_group external ACL helper
Guido Serassio [Sat, 17 May 2008 11:27:47 +0000 (13:27 +0200)] 
Windows port: Added new mswin_check_ad_group external ACL helper

This helper allow the lookup of users's group membership in a Windows
Active Directory domain.
It overcomes the Lan Manager limits of mswin_check_lm_group, but it can be
used only with native Windows Active Directory domains, so mswin_check_lm_group
will not removed from Squid.

17 years agoWindows port: allow build of squid_session on Windows
Guido Serassio [Sat, 17 May 2008 09:22:17 +0000 (11:22 +0200)] 
Windows port: allow build of squid_session on Windows

17 years agoAuthor: Svenx <svensven@gmail.com>
Amos Jeffries [Thu, 15 May 2008 12:35:58 +0000 (00:35 +1200)] 
Author: Svenx <svensven@gmail.com>
Bug 2223: flexible handling of x-forwarded-for

This patch adds three settings for the 'forwarded_for' option in squid.conf:

If set to "transparent", Squid will not alter the X-Forwarded-For header in any
way.

If set to "delete", Squid will delete the entire X-Forwarded-For header.

If set to "truncate", Squid will remove all existing X-Forwarded-For entries,
and place itself as the sole entry.

The old options 'on' and 'off' have been left unaltered.

17 years agoMerge from trunk
Amos Jeffries [Thu, 15 May 2008 12:34:22 +0000 (00:34 +1200)] 
Merge from trunk

17 years agoAuthor: Joshua Root <josh+squid@root.id.au>
Amos Jeffries [Thu, 15 May 2008 11:43:06 +0000 (23:43 +1200)] 
Author: Joshua Root <josh+squid@root.id.au>
Bug 2204: configure fails to detect max open files

The behaviour of setrusage has changed in Mac OS X 10.5.

17 years agoRename helpers/basic_auth/squid_radius_auth/util.* to radius-util.*
Amos Jeffries [Wed, 14 May 2008 04:04:23 +0000 (16:04 +1200)] 
Rename helpers/basic_auth/squid_radius_auth/util.* to radius-util.*

They were clashing with Squids' own include/util.h

17 years agoBoost debugging of uniqueHostname lookups
Amos Jeffries [Tue, 13 May 2008 11:23:27 +0000 (23:23 +1200)] 
Boost debugging of uniqueHostname lookups