]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
15 years ago3.1.0.16
Amos Jeffries [Mon, 1 Feb 2010 04:01:43 +0000 (21:01 -0700)] 
3.1.0.16

15 years agoPrep for 3.1.0.16
Amos Jeffries [Mon, 1 Feb 2010 01:56:03 +0000 (14:56 +1300)] 
Prep for 3.1.0.16

15 years agoPrep for 3.0.STABLE22
Amos Jeffries [Mon, 1 Feb 2010 01:09:00 +0000 (14:09 +1300)] 
Prep for 3.0.STABLE22

15 years agoAuthor: Marko <mr_4u2@yahoo.com>
Amos Jeffries [Sun, 31 Jan 2010 09:47:16 +0000 (22:47 +1300)] 
Author: Marko <mr_4u2@yahoo.com>
Bug 2496: Downloading some variants in full before relaying

AKA, assertion failed: comm.cc:115: "ccb->active == false"
if the client disconnected before download finished arriving.

15 years agoAuthor: Graham Keeling <graham@equiinet.com>
Amos Jeffries [Sun, 31 Jan 2010 09:42:17 +0000 (22:42 +1300)] 
Author: Graham Keeling <graham@equiinet.com>
WCCPv1 not connecting to router correctly

I am coming across a problem with WCCPv1...

squid-2.5 connects to UDP port 2048, I get replies, and everything else then works.

squid-3.1 looks like it is trying to connect to UDP port 0 on the cisco.
[and fails to work]

I have looked at the src/wccp.c for squid-2.5, and it is clear that the port is
being set to 2048 for the connection to the router.
I have also looked at the source for 2.6, 2.7 and 3.0 (src/wccp.cc for this
version).
In all those, it appears to be setting the port on the outgoing connection.

However, in the 3.1 source, it doesn't.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 31 Jan 2010 09:35:53 +0000 (22:35 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Polished %>ha description.

15 years agoAuthor: Frank Schmirler <squid@schmirler.de>
Amos Jeffries [Sat, 30 Jan 2010 01:21:52 +0000 (14:21 +1300)] 
Author: Frank Schmirler <squid@schmirler.de>
Bug 2851: Connection pinning fails when using a peer

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sat, 30 Jan 2010 01:08:33 +0000 (14:08 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Add the http::>ha format code and make http::>h log original request headers

This patch:
 - Modify the existin "http::>h format code to log HTTP request headers
   before any adaptation and redirection
 - Add the new format code "http::>ha" which allow the user to log HTTP
   request header or header fields after adaptation and redirection.

This is a Measurement Factory project.

15 years agoAuthor: Frank Schmirler <squid@schmirler.de>
Amos Jeffries [Sat, 30 Jan 2010 00:16:30 +0000 (13:16 +1300)] 
Author: Frank Schmirler <squid@schmirler.de>
Bug 2850: Mismatch in hier_code enum / hier_strings array

15 years agoDisplay cache_peer name option in CacheMgr config
Amos Jeffries [Fri, 29 Jan 2010 13:16:35 +0000 (02:16 +1300)] 
Display cache_peer name option in CacheMgr config

15 years agoAuthor: Michael van Elst
Amos Jeffries [Fri, 29 Jan 2010 13:11:49 +0000 (02:11 +1300)] 
Author: Michael van Elst
Use POSIX tests for IPv6 address detections.

15 years agoBug 2553: X-Forwarded-For with IPv6 address not handled correctly
Amos Jeffries [Fri, 29 Jan 2010 12:14:44 +0000 (01:14 +1300)] 
Bug 2553: X-Forwarded-For with IPv6 address not handled correctly

Also, remove the port from consideration. It is meaningless on indirect
client address.

15 years agoFix build errors when XFF compounds with other features
Amos Jeffries [Fri, 29 Jan 2010 11:56:09 +0000 (00:56 +1300)] 
Fix build errors when XFF compounds with other features

Some squid.conf options require XFF and other component wrappers to build
properly.

This fixes ICAP and Delay Pools clash which appeared in testing. Other
multiple-component wrapping can be done in identical fashion

15 years agoAuthor: Wolfgang Nothdurft <wolfgang@linogate.de>
Amos Jeffries [Fri, 29 Jan 2010 11:44:04 +0000 (00:44 +1300)] 
Author: Wolfgang Nothdurft <wolfgang@linogate.de>
Bug 2731: Add follow_x_forwarded_for support to ICAP

Pass the indirect client address to the ICAP server using X-Client-IP.

15 years agoAuthor: Wolfgang Nothdurft <wolfgang@linogate.de>
Amos Jeffries [Fri, 29 Jan 2010 11:32:46 +0000 (00:32 +1300)] 
Author: Wolfgang Nothdurft <wolfgang@linogate.de>
Bug 2730: Regressions in follow_x_forwarded_for since Squid-2

Two Major Regressions:

* Omitted testing for trust of the directly connecting client.
  this is critical is trusting the header content itself.
  The absence permitted remote clients to forge X-Forwarded-For
  and gain access to resources through Squid.
  (mitigated by the following)

* Bad logic in implementing the trust model resulted in any XFF
  headers containing untrusted IPs to be dropped in their entirety.
  This resulted in clients transiting more than one proxy heirarchy to
  be incorrectly logged and reported in the second.

Some polish alterations to the existing logics:

* Testing the direct client address for trust means the testing must be
  fully async 'slow'. Thus avoiding the memory leaks found on occasion.

 * acl_uses_indirect_client is not strictly needed to test multiple levels
  of X-Forwarded-For properly. The entire list of IPs are now always
  tested until an untrusted is found or an ACL failure occurs.

15 years agoMore portable rfc1035 unit test
Amos Jeffries [Fri, 29 Jan 2010 11:27:54 +0000 (00:27 +1300)] 
More portable rfc1035 unit test

15 years agoAdd warnings explaining Invalid Response errors generated by Squid
Amos Jeffries [Fri, 29 Jan 2010 11:23:57 +0000 (00:23 +1300)] 
Add warnings explaining Invalid Response errors generated by Squid

15 years agoDoc update on http_port tproxy
Amos Jeffries [Fri, 29 Jan 2010 11:17:32 +0000 (00:17 +1300)] 
Doc update on http_port tproxy

15 years agoBump AIO debug sync message down a level
Amos Jeffries [Fri, 29 Jan 2010 10:22:23 +0000 (23:22 +1300)] 
Bump AIO debug sync message down a level

15 years agoLimit language negotiation to bundled error pages
Amos Jeffries [Fri, 29 Jan 2010 10:16:02 +0000 (23:16 +1300)] 
Limit language negotiation to bundled error pages

15 years agoupdated release notes. Remove windows-only section
Amos Jeffries [Fri, 29 Jan 2010 10:01:36 +0000 (23:01 +1300)] 
updated release notes. Remove windows-only section

15 years agoBug 2601: pt 2: Mixed v4/v6 src acl leads to TCP_DENIED
Amos Jeffries [Sat, 16 Jan 2010 04:33:11 +0000 (17:33 +1300)] 
Bug 2601: pt 2: Mixed v4/v6 src acl leads to TCP_DENIED

 - Remove 'odd' netmask support from ACL.
 - Fully deprecate netmask support for ACL.

Earlier fix caused inconsistent handling between IPv4 and IPv6 builds of
Squid. Which has turned out to be a bad idea.
This fixes that by 'breaking' both build alternatives.

see also bug 2141 for long-term tracker.

15 years agoHandle DNS header-only packets as invalid.
Amos Jeffries [Sat, 16 Jan 2010 03:19:24 +0000 (16:19 +1300)] 
Handle DNS header-only packets as invalid.

15 years agoBug 2811: SNMP client table renumbering
Amos Jeffries [Sat, 16 Jan 2010 03:08:54 +0000 (16:08 +1300)] 
Bug 2811: SNMP client table renumbering

Bump the client table to version 2 for new IP address formatting.

* Also polishes the OID debug display a little bit.

15 years agoFix build errors in PAM auth on Linux
Amos Jeffries [Sat, 16 Jan 2010 03:00:20 +0000 (16:00 +1300)] 
Fix build errors in PAM auth on Linux

15 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 16 Jan 2010 02:54:48 +0000 (15:54 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Skip performing C libTrie unit tests

15 years agoReduce non-IP debugs message priority
Amos Jeffries [Wed, 13 Jan 2010 12:47:46 +0000 (01:47 +1300)] 
Reduce non-IP debugs message priority

15 years agoRevert Typo in cachemgr.cc update
Amos Jeffries [Wed, 13 Jan 2010 12:44:32 +0000 (01:44 +1300)] 
Revert Typo in cachemgr.cc update

15 years agoVarious pointer and syntax errors.
Amos Jeffries [Wed, 13 Jan 2010 12:31:57 +0000 (01:31 +1300)] 
Various pointer and syntax errors.

Uncovered by Pawel Worach using clang static analysis tool.

Fixes:
 * several NULL pointer dereferences
 * several unused variable return saves
 * a parentheses typo

15 years agoAdd client_ip_max_connections
Amos Jeffries [Wed, 13 Jan 2010 12:11:48 +0000 (01:11 +1300)] 
Add client_ip_max_connections

Given some incentive after deep consideration of the slowloris claims.
While I still do not believe Squid is vulnerable per-se and some people
have tested and found no such failures as claimed for the DoS attack.

We found we could provide better administrative controls.  This is one such
that has been asked about many times and still did not exist. It operates
essentially the same as maxconn ACL, but does not require HTTP headers and
other request data to fully exist like ACLs do.

It is tested immediately after accept() and is request type agnostic, right
down to DNS TCP requests. So care is warranted in hierarchy situations or where
clients may be behind NAT.

Utilizes the client DB to monitor accepted TCP links. Operates prior to
everything so as to eliminate resource usage on the blocking case and
close the windows of opportunity for dribble-attacks etc.

Default (-1) is to keep the status-quo of no limits.

15 years agoBug 2452: external_acl_type does not limit entries, leads to high memory usage
Amos Jeffries [Wed, 13 Jan 2010 11:59:41 +0000 (00:59 +1300)] 
Bug 2452: external_acl_type does not limit entries, leads to high memory usage

Set a nominal cap of 256*1024 entries per external_acl_type configured.
This can be adjusted as needed with the external_acl_type cache=N option.

15 years agoDetatch status code enum from enums.h
Amos Jeffries [Wed, 13 Jan 2010 11:45:14 +0000 (00:45 +1300)] 
Detatch status code enum from enums.h

15 years agoBug 2787: pt 1: unexpected http status code messages
Amos Jeffries [Wed, 13 Jan 2010 11:26:58 +0000 (00:26 +1300)] 
Bug 2787: pt 1: unexpected http status code messages

Bumping the message from level-0 (critical) to level-1 (important and
major informational)

15 years agoAuthor: Matthew Morgan <atcs.matthew@gmail.com>
Amos Jeffries [Wed, 13 Jan 2010 04:42:35 +0000 (17:42 +1300)] 
Author: Matthew Morgan <atcs.matthew@gmail.com>
Incorrect function names in aclParseAclList debugging output.

15 years agoSourceFormat: do forced removal of stuck *.astylebak files
Amos Jeffries [Wed, 13 Jan 2010 04:29:53 +0000 (17:29 +1300)] 
SourceFormat: do forced removal of stuck *.astylebak files

15 years agoFix SetTproxy2OutgoingAddr definition error
Amos Jeffries [Wed, 13 Jan 2010 04:23:23 +0000 (17:23 +1300)] 
Fix SetTproxy2OutgoingAddr definition error

15 years agoRegression Fix: Make Squid abort on parse failures.
Amos Jeffries [Wed, 13 Jan 2010 04:17:42 +0000 (17:17 +1300)] 
Regression Fix: Make Squid abort on parse failures.

The addition of multi-file parsing and catching of thrown errors between
them caused any errors in sub-files to be non-fatal and allow Squid to
run as if everything was normal, even if parts of the config were not
being loaded.

Squid will now propigate the error exception out and exit with a count of
the errors found.

15 years agoBug 2811: pt 1: Correct Peer table OID numbering
Amos Jeffries [Wed, 13 Jan 2010 03:59:53 +0000 (16:59 +1300)] 
Bug 2811: pt 1: Correct Peer table OID numbering

The IPv6 alterations to the cache_peer table display should not have
altered existing OID numbers. This fixes that by bumping the new table
format to a new OID number .1.3.6.1.4.1.3495.1.5.1.3 for version 3 of the
table.

NP: version 1 of the table was in 2.0->2.5, and 3.0
    version 2 of the table was in 2.6+

15 years agoAuthor: Adrian Chadd <adri@squid-cache.org>
Amos Jeffries [Wed, 13 Jan 2010 03:51:47 +0000 (16:51 +1300)] 
Author: Adrian Chadd <adri@squid-cache.org>
Polish SNMP tree generator.

Alters the OID tree creation such that OID are easier for code developers
to manage.

Ported from Squid-2 patch (only applied to Lusca) by Amos Jeffries.

15 years agoCleanup: use libtool/libtdl default location
Amos Jeffries [Wed, 13 Jan 2010 02:03:37 +0000 (15:03 +1300)] 
Cleanup: use libtool/libtdl default location

It is simpler to use the default libltdl location than hiding libtool
away in our custom directory and requiring a bootstrap to set it up.

15 years agoRemove obsolete RunCache/RunAccel scripts.
Amos Jeffries [Wed, 13 Jan 2010 01:59:19 +0000 (14:59 +1300)] 
Remove obsolete RunCache/RunAccel scripts.

RunCache and RunAccel have been obsolete since squid-2.6 parent/child
auto-restart feature was included in the main code.

15 years agoAccount for mem_node overhead inside cache_mem
Amos Jeffries [Wed, 13 Jan 2010 01:53:11 +0000 (14:53 +1300)] 
Account for mem_node overhead inside cache_mem

This makes squid include the overhead memory space when determining the
number of data pages available in cache_mem memory space. Forming a much
better limit on memory cache usage.

This does NOT solve any issues created by sizeof(mem_node) being unaligned
with the system malloc implementation page size. That still needs to be
resolved.

15 years agoFix Kerberos build errors on FreeBSD
Amos Jeffries [Wed, 13 Jan 2010 01:43:14 +0000 (14:43 +1300)] 
Fix Kerberos build errors on FreeBSD

15 years agoDocs: dstdomain is a 'FAST' group ACL.
Amos Jeffries [Wed, 13 Jan 2010 01:24:48 +0000 (14:24 +1300)] 
Docs: dstdomain is a 'FAST' group ACL.

15 years agoRemove optional kerberos/spnegohelp/ library due to licensing issues
Henrik Nordstrom [Sat, 9 Jan 2010 01:13:28 +0000 (02:13 +0100)] 
Remove optional kerberos/spnegohelp/ library due to licensing issues

15 years agoPrep for 3.0.STABLE21
Amos Jeffries [Tue, 22 Dec 2009 05:57:11 +0000 (18:57 +1300)] 
Prep for 3.0.STABLE21

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 16 Dec 2009 01:13:35 +0000 (14:13 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Remove the following ./configure warnings:

  conftest.cpp:34:1: warning: "USE_DISKIO_AIO" redefined
  conftest.cpp:35:1: warning: "USE_DISKIO_DISKTHREADS" redefined

The patch allows Squid v3.1 to build on RHEL 5.4 which has autoconf v2.59.
Without the patch, USE_DISKIO_AIO is zero but the corresponding AIO files
are compiled, leading to errors. I do not know if other platforms are
affected.

15 years agoFix type-punned pointer in forwarding
Amos Jeffries [Wed, 16 Dec 2009 01:12:27 +0000 (14:12 +1300)] 
Fix type-punned pointer in forwarding

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 16 Dec 2009 01:03:18 +0000 (14:03 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Set timestamps for newly created store entry during ICAP request satisfaction.

If the ICAP-generated response lacks the HTTP Date header, and we do not call
timestampsSet(), Squid says:

WARNING: An error inside Squid has caused an HTTP reply without Date:.

15 years agoBug 2395: FTP errors not displayed
Amos Jeffries [Wed, 16 Dec 2009 01:01:25 +0000 (14:01 +1300)] 
Bug 2395: FTP errors not displayed

* Fix PUT and other errors hanging
* Fix assertion "entry->store_status == STORE_PENDING" caused by FTP
* Several variable-shadowing cases resolved for the fix.

15 years agoAuthor: Jochen Voss <voss@seehuhn.de>
Amos Jeffries [Wed, 16 Dec 2009 00:59:17 +0000 (13:59 +1300)] 
Author: Jochen Voss <voss@seehuhn.de>
Fix failure to reset MD5 context buffer

15 years agoShuffle simple math functions into SquidMath
Amos Jeffries [Wed, 16 Dec 2009 00:56:45 +0000 (13:56 +1300)] 
Shuffle simple math functions into SquidMath

This unlinks many depencies pulled in by tools.cc through the more
complicated permissions, and death reporting code.

15 years agoBug 2830: clarify where NULL byte is in headers.
Amos Jeffries [Wed, 16 Dec 2009 00:51:19 +0000 (13:51 +1300)] 
Bug 2830: clarify where NULL byte is in headers.

Debug printing used to naturally stop string output at the null byte.

This should show the first segment of headers up to the NULL and the
segment of headers after it. So that its clear to admin that there are
more headers _after_ the portion that used to be logged.

16 years agoBandaid: pass ICY to/from eCAP.
Amos Jeffries [Sun, 6 Dec 2009 10:39:47 +0000 (23:39 +1300)] 
Bandaid: pass ICY to/from eCAP.

This fixes build complaints in Squid between ICY and eCAP.
eCAP itself does not support the underying changes as yet.

16 years agoRevert rev.9820
Amos Jeffries [Sun, 6 Dec 2009 03:46:16 +0000 (16:46 +1300)] 
Revert rev.9820

16 years agoRemove libstdc++ from libTrie C object builds
Amos Jeffries [Tue, 1 Dec 2009 10:18:26 +0000 (23:18 +1300)] 
Remove libstdc++ from libTrie C object builds

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Mon, 30 Nov 2009 10:54:47 +0000 (23:54 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed fhuge-objects detection in libTrie

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Mon, 30 Nov 2009 10:49:01 +0000 (23:49 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug 2155: Assertion failures on malformed Content-Range response headers

A number of conditions with malformed Content-Range headers were
not trapped properly triggering odd conditions in the code.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Mon, 30 Nov 2009 10:43:26 +0000 (23:43 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed some variable shadowing.

16 years agoFix detection of obsolete 'all' patterns
Amos Jeffries [Mon, 30 Nov 2009 10:27:02 +0000 (23:27 +1300)] 
Fix detection of obsolete 'all' patterns

A little bit overly enthusiastic on the additions...
 * 0.0.0.0 is a /32 not /0
 * 0->N is 'all', not 0->0

16 years agoUn-polish the huge-objects tests.
Amos Jeffries [Tue, 24 Nov 2009 12:26:08 +0000 (01:26 +1300)] 
Un-polish the huge-objects tests.

It was a bad idea before porting down.

16 years ago3.1.0.15 SQUID_3_1_0_15
Amos Jeffries [Mon, 23 Nov 2009 03:09:18 +0000 (20:09 -0700)] 
3.1.0.15

16 years agoPrep 3.1.0.15
Amos Jeffries [Mon, 23 Nov 2009 03:01:46 +0000 (16:01 +1300)] 
Prep 3.1.0.15

16 years agoAuthor: Various Translators
Amos Jeffries [Mon, 23 Nov 2009 02:44:57 +0000 (15:44 +1300)] 
Author: Various Translators
Language Updates

16 years agoSourceFormat Enforcement
Automatic source maintenance [Mon, 23 Nov 2009 02:37:03 +0000 (19:37 -0700)] 
SourceFormat Enforcement

16 years agoPolish ACL src/dst magic monikers and push upgrading to 'all'.
Amos Jeffries [Mon, 23 Nov 2009 02:20:24 +0000 (15:20 +1300)] 
Polish ACL src/dst magic monikers and push upgrading to 'all'.

* Adds 'ipv4' magic moniker. Slightly safer and friendlier than !ipv6

* Updates the IP range parse to detect several old broken cases of 'all'.
  Warn loudly and replace with 'all' during parse.
  This is needed for all the people who use the 'all' pattern for special
  purposes under another name; auth hiding, deny_info redirects, etc.

16 years agoConvert Common.am snippet from @ variable style.
Amos Jeffries [Mon, 23 Nov 2009 02:19:12 +0000 (15:19 +1300)] 
Convert Common.am snippet from @ variable style.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Mon, 23 Nov 2009 02:11:13 +0000 (15:11 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Make huge-objects macro only test for GCC

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sun, 22 Nov 2009 20:30:54 +0000 (09:30 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Remove gcc-ism in adaptation.

globals do not need to be declared extern in the .cc

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sun, 22 Nov 2009 20:17:15 +0000 (09:17 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fix more gcc-ism in CBDATA_DEBUG

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sun, 22 Nov 2009 20:09:33 +0000 (09:09 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fix testheaders.sh to work with non-gcc compilers. build a true executable.

16 years agoFreeBSD for some reason some times do not like our big cf.data script
Henrik Nordstrom [Sat, 21 Nov 2009 22:20:01 +0000 (23:20 +0100)] 
FreeBSD for some reason some times do not like our big cf.data script

Split in multiple expressions specified by -e arguments. Seems to work better.

The large blob had a bit of extra space characters in it from the line folding
which seems to be related to the failure. (each command began with a space)

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 21 Nov 2009 11:44:35 +0000 (00:44 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fix Profiler gcc-ism: asm syntax is gcc-specific

16 years agoCorrect ICMP Checksum unit-tests.
Amos Jeffries [Sat, 21 Nov 2009 11:21:14 +0000 (00:21 +1300)] 
Correct ICMP Checksum unit-tests.

 * Correct bitmaps to network-order for Endian handling.
 * Fix mishap confusing array offset with bitmap bytes.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 21 Nov 2009 11:18:00 +0000 (00:18 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Implemented --disable-strict-error-checking configure option

Also, Add chmod to the list of searched-for programs during configuration.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 21 Nov 2009 11:01:43 +0000 (00:01 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed some cases of linkage type mismatch and many of parameter shadowing

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 21 Nov 2009 01:50:55 +0000 (14:50 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Improved some libraries detection logic

autoconf AC_SEARCH_LIBS offers more functionality than AC_CHECK_LIB

Also, add support and detection of NSS nis libraries.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 21 Nov 2009 01:43:52 +0000 (14:43 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Dnsserver and resolver fixes.

* A variable was not defined under certain autoconf-related conditions.
* inet_ntop header is required to be included when inet_ntop.c built.

16 years agoAuthor: Automatic source maintenance <squidadm@squid-cache.org>
Amos Jeffries [Sat, 21 Nov 2009 01:16:17 +0000 (18:16 -0700)] 
Author: Automatic source maintenance <squidadm@squid-cache.org>
SourceFormat Enforcement

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 21 Nov 2009 00:56:13 +0000 (13:56 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Style Makefile.am to use variable expansion instead of @ AUTOMAKEVAR

@AUTOMAKEVAR@ is troublesome when used in \ constructs as it may expand
to empty and the last line in a \ construct must not be empty or some
make versions will fail.

thankfully automake adds all variables for us, so using
is preferred.

Also:
 * Cleanup our big sed rule to avoid automake collisions
 * Odd REPL_POLICIES comment reference in repl/Makefile.am

16 years agoSourceFormat Enforcement
Automatic source maintenance [Fri, 20 Nov 2009 02:04:20 +0000 (19:04 -0700)] 
SourceFormat Enforcement

16 years agoSend correct Connection: header on intercepted replies
Amos Jeffries [Thu, 19 Nov 2009 11:34:54 +0000 (00:34 +1300)] 
Send correct Connection: header on intercepted replies

Intercepted apps are expecting Connection: back from the server not our
default Proxy-Connection:

16 years agoSourceFormat Enforcement
Automatic source maintenance [Sun, 15 Nov 2009 01:59:23 +0000 (18:59 -0700)] 
SourceFormat Enforcement

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 14 Nov 2009 11:42:21 +0000 (00:42 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Portability fix: non-GNU diff is not guarranteed to handle the -q switch

16 years agoTestBed: Leave data from failed builds for debug. Fatal on sandpit failure
Amos Jeffries [Sat, 14 Nov 2009 11:38:47 +0000 (00:38 +1300)] 
TestBed: Leave data from failed builds for debug. Fatal on sandpit failure

16 years agoPolish rfc1738 library code. Add cppunit tests.
Amos Jeffries [Sat, 14 Nov 2009 11:28:42 +0000 (00:28 +1300)] 
Polish rfc1738 library code. Add cppunit tests.

 * Adds API header file for this library.
 * Reveals the do_escape API and creates meaningful flags for its API.
 * Adds documentation.
 * Convert original unit tests by Robert Collins to cppunit code
 * Add new tests based on work for Samba by Andrew Bartlett

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 14 Nov 2009 04:33:35 +0000 (17:33 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Portability: __FUNCTION__ is not available on Soalris SunProCC

16 years agoUnitTests: check precompiler is sane with our wrapping style.
Amos Jeffries [Thu, 12 Nov 2009 14:07:21 +0000 (03:07 +1300)] 
UnitTests: check precompiler is sane with our wrapping style.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Thu, 12 Nov 2009 13:46:50 +0000 (02:46 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Bug 2778: fix linking issues using SunCC

SunCC doesn't handle inline extern functions, and misses some duplicate
code detection features gcc has; as a result squid-specific operator new and
operator delete get defined multiple times and fail linking.

 * Implemented a compiler-specific workaround by de-inlining the code.
 * Improved Solaris OS detection logic.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Thu, 12 Nov 2009 13:19:39 +0000 (02:19 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed linking convention mismatch in Asn ACL

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Thu, 12 Nov 2009 13:00:33 +0000 (02:00 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed and improved ACLTimeData::parse

16 years agoPolish several outstanding IPv6 settings
Amos Jeffries [Thu, 12 Nov 2009 12:49:09 +0000 (01:49 +1300)] 
Polish several outstanding IPv6 settings

 * Makes 'ipv6' magic monkier cover full IPv6 unicast space
   (previously just current active global)

 * Makes squid.conf default settings which require IPv6 content
   auto-enable/disable to match the IPv6 built support.

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Thu, 12 Nov 2009 12:27:22 +0000 (01:27 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
TestBed: Enable configure cache during test-suite runs

Added to test-build.sh the command-line switch --use-config-cache,
which causes the various unit test runs to share the config.cache.

Added --aggressively-use-config-cache test-builds.sh config-switch
which enables reusing config.cache across different testsuite runs.

The cache is NOT reused across different test-builds invocations.

16 years agoCleanup: shuffle new() hack for SGI into compat.
Amos Jeffries [Thu, 12 Nov 2009 12:12:34 +0000 (01:12 +1300)] 
Cleanup: shuffle new() hack for SGI into compat.

16 years agoBug 2617: Performance degradation during processing list of dstdomain ACL's
Amos Jeffries [Thu, 12 Nov 2009 12:04:08 +0000 (01:04 +1300)] 
Bug 2617: Performance degradation during processing list of dstdomain ACL's

Previously a raw-IP needed looking up every time a dstdomain entry was to
be checked against it. This caches the rDNS value across a checklist series.

Such that constructs like the following only do a single DNS check:

   acl foo dstdomain localhost local domain
   http_access allow foo foo !foo
   http_access deny foo

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Thu, 12 Nov 2009 11:57:44 +0000 (00:57 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Improve %nn parser

16 years agoMake cf_gen and cache_cf .h self-complete. Remove TestBed exception
Amos Jeffries [Thu, 12 Nov 2009 11:46:31 +0000 (00:46 +1300)] 
Make cf_gen and cache_cf .h self-complete. Remove TestBed exception

16 years agoBug 2628: Correct default PID location to PREFIX/var/run/squid.pid
Amos Jeffries [Thu, 12 Nov 2009 11:31:53 +0000 (00:31 +1300)] 
Bug 2628: Correct default PID location to PREFIX/var/run/squid.pid

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 11 Nov 2009 10:09:30 +0000 (23:09 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Generalize disk-io OS libraries into DISK_OS_LIBS

Used for disk-io related system libraries. Replaces older AIOLIB which
was unique to -lrt.

This solves dependency issues. We can not have dependencies on system
libraries as that fails for some sometimes..

16 years agoFixup some XTRA_LIBS merge errors
Henrik Nordstrom [Tue, 10 Nov 2009 11:58:25 +0000 (12:58 +0100)] 
Fixup some XTRA_LIBS merge errors