]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
13 years ago3.1.5.1 SQUID_3_1_5_1
Amos Jeffries [Wed, 28 Jul 2010 08:09:21 +0000 (02:09 -0600)] 
3.1.5.1

13 years agoAdd stub debug API.
Amos Jeffries [Wed, 28 Jul 2010 07:59:53 +0000 (01:59 -0600)] 
Add stub debug API.

To resolve link dependency blowout from linking libip.la with debug.

13 years agoPrep for 3.1.5.1
Amos Jeffries [Wed, 28 Jul 2010 06:55:23 +0000 (18:55 +1200)] 
Prep for 3.1.5.1

13 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 28 Jul 2010 01:23:12 +0000 (19:23 -0600)] 
SourceFormat Enforcement

13 years agoReplace most USE_IPV6 with run-time support probing
Amos Jeffries [Tue, 27 Jul 2010 13:02:31 +0000 (07:02 -0600)] 
Replace most USE_IPV6 with run-time support probing

This unifies the code built for IPv4-only, dual-stack and split-stack.

 * --disable-ipv6 option remains, however it now prevents the run-time probe

 * Probing previously done in ./configure at build time is now merged and
performed run-time on every startup. IPv6 is enabled or disabled based on
the underlying OS support for sockets and setsockopt operations required.

 * Parsing and other operations which can be performed without specific IPv6
connectivity are enabled.

 * Some DNS logic alterations have had to be made to merge the split-stack
DNS and leverage it for IPv4-only mode. Otherwise the logics are unchanged
from previous dual-stack builds which have been well tested.

13 years agoAuthor: Various Translators
Amos Jeffries [Tue, 27 Jul 2010 11:22:48 +0000 (23:22 +1200)] 
Author: Various Translators
Translations: sync with 3.HEAD language updates

13 years agoSplit-Stack enable DNS and http(s)_port sockets.
Amos Jeffries [Sun, 25 Jul 2010 08:04:41 +0000 (02:04 -0600)] 
Split-Stack enable DNS and http(s)_port sockets.

This breaks the DNS sockets into two when split-stack mode is used.
DnsSocketA becomes IPv4-only and DnsSocketB becomes used as IPv6-only.
Without Split-stack mode DnsSocketA is the only one actually used.

NP: comm outgoing socket support is still a blocker on split-stack support.
However this update is required for the upcoming run-time support.

13 years agoBug 2963: --with-valgrind-debug failures ignored
Amos Jeffries [Fri, 23 Jul 2010 05:00:37 +0000 (23:00 -0600)] 
Bug 2963: --with-valgrind-debug failures ignored

Made to hard-fail if --with is used.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Fri, 23 Jul 2010 04:30:08 +0000 (22:30 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Fixed comm.cc:377: "fd_table[fd].halfClosedReader != NULL" assertion

Client side must stop reading when switching to a tunnel mode. The old code
called low-level commSetSelect to stop reading, but that left Comm tables in
an inconsistent state, with the client side reader callback still scheduled.
Squid would assert when the tunnel called comm_read with its own callback.

The bug is unrelated to half-closed connections despite halfClosedReader
mentioned in the assertion text. The assertion means "no more than one active
reader per FD".

13 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Fri, 23 Jul 2010 04:28:43 +0000 (22:28 -0600)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Kludge: try to detect system acinclude path, to fix libtool brokenness.

13 years agoAuthor: isaac <isaacarsenal@gmail.com>
Amos Jeffries [Wed, 21 Jul 2010 08:08:26 +0000 (02:08 -0600)] 
Author: isaac <isaacarsenal@gmail.com>
Bug 2985: search scope for digest_ldap_auth didn't work

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 21 Jul 2010 07:48:15 +0000 (01:48 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Update libtool autoconf macros to libtool2 style

13 years agoCorrection documentation of QoS disable-preserve-miss
Amos Jeffries [Wed, 21 Jul 2010 07:40:22 +0000 (01:40 -0600)] 
Correction documentation of QoS disable-preserve-miss

13 years agoRemove .so from SASL build checks
Amos Jeffries [Wed, 21 Jul 2010 07:23:43 +0000 (01:23 -0600)] 
Remove .so from SASL build checks

We definitely require the .a and .la files to build against SASL libraries.
The run-time .so is only relevant later.

13 years agoAuthor: Karl Benoit <karl.isatwork@gmail.com>
Amos Jeffries [Wed, 21 Jul 2010 07:22:55 +0000 (01:22 -0600)] 
Author: Karl Benoit <karl.isatwork@gmail.com>
Bug 2885: AIX support: c only c++ style comments test case

13 years agoBug 2885: AIX support: check libm for log()
Amos Jeffries [Wed, 21 Jul 2010 07:22:02 +0000 (01:22 -0600)] 
Bug 2885: AIX support: check libm for log()

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 21 Jul 2010 07:17:51 +0000 (01:17 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Do not stop accepting just because we got COMM_NOMESSAGE.

Do not dereference a possibly NULL callback pointer.

13 years agoAuthor: Karl Benoit <karl.isatwork@gmail.com>
Amos Jeffries [Thu, 15 Jul 2010 00:47:20 +0000 (18:47 -0600)] 
Author: Karl Benoit <karl.isatwork@gmail.com>
Bug 2885: AIX support: uchar is already define (more)

13 years agoAuthor: Karl Benoit <karl.isatwork@gmail.com>
Amos Jeffries [Thu, 15 Jul 2010 00:36:09 +0000 (18:36 -0600)] 
Author: Karl Benoit <karl.isatwork@gmail.com>
Bug 2885: AIX support: uchar is already define

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 14 Jul 2010 23:47:08 +0000 (17:47 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2651: crash handling NULL write callback

Check whether the old-style (function-based) callback has the
function address to call. A writer may leave no "callback number".

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 14 Jul 2010 23:45:54 +0000 (17:45 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Correct Joomla DB auth handling

Found while reading the code. Original clearly could not have worked as
it split the password field using an uninitialized delimiter.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 14 Jul 2010 23:42:01 +0000 (17:42 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Fixed memory leak related to retried requests.

ErrorState object was not destroyed if the failed request to the origin
server or peer was retried.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 14 Jul 2010 23:41:16 +0000 (17:41 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Prevent memory leaks when cloning Range requests.

HttpRequest::range field was set to a new HttpHdrRange object twice:
once in HttpRequest::clone() and once in HttpRequest::hdrCacheInit()
called from clone().

Polished HttpReply::clone() to make sure HttpReply::hdrCacheInit()
does not use uninitialized HttpReply::sline field and to prevent
benign double-initialization of HttpReply::keep_alive.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 14 Jul 2010 23:40:27 +0000 (17:40 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Fixed memory leaks related to Range requests.

HttpRequest::range field could be cleared without destroying HttpHdrRange
object in clientInterpretRequestHeaders().

The range field is essentially a cached value of the parsed Range header.
Managing the cache outside its owner object is a bad idea.

13 years agoBetter bug 2972 fix.
Amos Jeffries [Mon, 5 Jul 2010 11:50:36 +0000 (05:50 -0600)] 
Better bug 2972 fix.

sed the includes explicitly. Previous run worked unless code was actually
bootstrapped to an older libtool version.

13 years agoBug 2972: LTDL 2.2.6b compile errors
Amos Jeffries [Mon, 5 Jul 2010 11:00:00 +0000 (05:00 -0600)] 
Bug 2972: LTDL 2.2.6b compile errors

Bundle a slightly hacked version of libltdl/ltdl.h which does not use <>
for inclusion of its dependency files. This makes it portable to OS with
older libtool versions.

13 years agoMaintenance: Fix validaton of release version SQUID_3_1_5
Amos Jeffries [Fri, 2 Jul 2010 02:19:59 +0000 (20:19 -0600)] 
Maintenance: Fix validaton of release version

13 years ago3.1.5
Amos Jeffries [Fri, 2 Jul 2010 02:03:45 +0000 (20:03 -0600)] 
3.1.5

13 years agoPrep for 3.1.5
Amos Jeffries [Fri, 2 Jul 2010 01:59:56 +0000 (13:59 +1200)] 
Prep for 3.1.5

13 years agoFix context leak in HttpStateData::processReplyHeader
Amos Jeffries [Fri, 2 Jul 2010 01:24:43 +0000 (19:24 -0600)] 
Fix context leak in HttpStateData::processReplyHeader

13 years agoAuthor: Matthias Pitzl <silamael@coronamundi.de>
Amos Jeffries [Sun, 27 Jun 2010 09:54:35 +0000 (21:54 +1200)] 
Author: Matthias Pitzl <silamael@coronamundi.de>
Bug 2967: raw-IPv6 address URL with append_domain broken

13 years agoAuthor: Sean Critica <sean.critica@gmail.com>
Amos Jeffries [Sun, 27 Jun 2010 09:50:06 +0000 (21:50 +1200)] 
Author: Sean Critica <sean.critica@gmail.com>
Bug 2903: does not send indirect X-Client-Ip in ICAP respmod

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sun, 27 Jun 2010 09:44:17 +0000 (21:44 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Fix free memory corruption and off-by-on error when comparing SNMP OIDs

Both introduced by the polishing of the SNMP tree generator.

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sun, 27 Jun 2010 09:40:48 +0000 (21:40 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Restart DNS retransmission count when restarting the query as an A lookup

13 years agoAuthor: Robert Collins <robertc@robertcollins.net>
Amos Jeffries [Sun, 27 Jun 2010 09:35:30 +0000 (21:35 +1200)] 
Author: Robert Collins <robertc@robertcollins.net>
Bug 2950: HTTP responses with no Date, L-M or Expires can now be cached

HTTP responses with no Date, Last-modified or Expires headers can
now be cached (given an appropriate refresh_pattern). Previously we
were not caching them in case of an infinite loop in cache farms:
however Squid adds Date: headers now which remove that concern.

13 years agoMaintenance: Formater skip libltdl dirs
Amos Jeffries [Sun, 27 Jun 2010 09:21:15 +0000 (21:21 +1200)] 
Maintenance: Formater skip libltdl dirs

13 years agoSourceFormat Enforcement
Automatic source maintenance [Sun, 13 Jun 2010 02:17:17 +0000 (20:17 -0600)] 
SourceFormat Enforcement

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 12 Jun 2010 12:03:07 +0000 (00:03 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug 2937: Fails to detect chunked encoding if not given in all lower case

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 12 Jun 2010 11:42:52 +0000 (23:42 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Port from 2.7: max_filedescriptor config option

Since Squid no longer really has any hardcoded filedescriptor limitations
it makes sense to have a squid.conf directive allowing the number of
filedescriptors to be tuned runtime. Default if unset is to obey whatever
ulimit settings as before.

 * setMaxFD: figures out what to we can use for Squid_MaxFD

 * setSystemLimits: Configures the system limitations to match our
  expectations which might be lower than what setMaxFD finds if
  the comm loop has additional restrictions

 * Restrict limited select() I/O loop below FD_SETSIZE.

AYJ:
  Henrik informs that loops using fd_set() (select and win32-select) must
  be kept below FD_SETSIZE or they can hang Squid or cause out-of-bounds
  memory errors.

NP: Squid-2 does not appear to limit select() like this. May need fixing too.

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 12 Jun 2010 10:46:20 +0000 (22:46 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
persistent_connection_after_error is meant to be on by default

for some reason the default was set to off. Default should be on
as reflected in the description.

13 years agokFreeBSD does not have linux headers. Wrap properly.
Amos Jeffries [Sat, 12 Jun 2010 10:36:06 +0000 (22:36 +1200)] 
kFreeBSD does not have linux headers. Wrap properly.

13 years agoMaintenance: Use system MD5 instead of hard-coded python paths
Amos Jeffries [Sat, 12 Jun 2010 10:29:11 +0000 (22:29 +1200)] 
Maintenance: Use system MD5 instead of hard-coded python paths

13 years agoAuthor: Sean Critica <sean.critica@gmail.com>
Amos Jeffries [Sat, 12 Jun 2010 10:25:31 +0000 (22:25 +1200)] 
Author: Sean Critica <sean.critica@gmail.com>
Bug 2943: ICAP tokens not logged when using multiple access

13 years agoSourceFormat Enforcement
Automatic source maintenance [Mon, 31 May 2010 01:39:08 +0000 (19:39 -0600)] 
SourceFormat Enforcement

13 years agoOpenBSD: Fix build mem.cc warning: converting of negative value
Amos Jeffries [Mon, 31 May 2010 01:27:12 +0000 (13:27 +1200)] 
OpenBSD: Fix build mem.cc warning: converting of negative value

13 years ago3.1.4 SQUID_3_1_4
Amos Jeffries [Sun, 30 May 2010 13:20:23 +0000 (07:20 -0600)] 
3.1.4

13 years agoPrep for 3.1.4
Amos Jeffries [Sun, 30 May 2010 13:15:00 +0000 (01:15 +1200)] 
Prep for 3.1.4

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 30 May 2010 13:08:03 +0000 (07:08 -0600)] 
Author:  Alex Rousskov <rousskov@measurement-factory.com>
Bug 2789: Optimize unlimited memory pools, and correctly handle limits > 2GB.

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sun, 30 May 2010 13:05:25 +0000 (07:05 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Disable chunked memory pools by default. Rework memory pools

- Default to the old simple non-chunked pool type using malloc
  with a simple freelist per pool.
- Various statistics & cachemgr Memory Utilization fixes
- Source reorganisation to split pool implementations from the general
  framework. Allocators now in MemPoolChunked.cc and MemPoolMalloc.cc,
  with general framework & statistics in MemPool.cc.

The chunked allocator is still available and can be activated by setting
the environment variable MEMPOOLS=1 but the default is now the non-chunked
allocator which has been fixed to account allocations properly for statistics
and also maintain a simple freelist to cache allocations.

No squid.conf changes, other than that the memory_pools and
memory_pools_limit directives now works as intended (not possible
with the chunked allocator).

13 years agoBug 2810: common log format generates 2 lines of syslog
Amos Jeffries [Sun, 30 May 2010 09:11:10 +0000 (21:11 +1200)] 
Bug 2810: common log format generates 2 lines of syslog

Based on work by Keyran Bayliss

13 years agoAuthor: Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
Amos Jeffries [Sun, 30 May 2010 07:52:45 +0000 (19:52 +1200)] 
Author: Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
Add Joomla and Salted Hash support to basic_db_auth helper

13 years agoSourceFormat Enforcement
Automatic source maintenance [Sat, 29 May 2010 01:39:35 +0000 (19:39 -0600)] 
SourceFormat Enforcement

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Fri, 28 May 2010 06:10:57 +0000 (00:10 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2697: Adaptation leaks and extra requests after reconfiguration

This patch "detaches" services from the configuration during reconfiguration.
Detached services do not participate in new adaptation transactions but allow
the old transactions to finish nicely. Once all users are gone, the refcounted
service disappears.

As a side effect of these fixes, several aspects of eCAP service registration
and mapping of loaded and configured eCAP services have been fixed. We will be
able to claim support for eCAP reconfiguration after libecap adds
reconfiguration API.

13 years agoBug 2877: pt2: only output zero-size warning on reverse-proxy requests
Amos Jeffries [Fri, 28 May 2010 04:21:43 +0000 (22:21 -0600)] 
Bug 2877: pt2: only output zero-size warning on reverse-proxy requests

13 years agoPolished source-maintenance
Amos Jeffries [Fri, 28 May 2010 04:17:13 +0000 (22:17 -0600)] 
Polished source-maintenance

13 years agoAdd source-maintenance.sh to perform automated Maintenance Updates
Amos Jeffries [Wed, 26 May 2010 04:00:23 +0000 (16:00 +1200)] 
Add source-maintenance.sh to perform automated Maintenance Updates

* merge scripts/srcformat.sh automated formatting
* merge scripts/mk-debugs.sh previously manual debug section indexing

Also, cleanup some source files debug section information ready for
regular automated enforcement.

13 years agoUpdated documentation
Amos Jeffries [Wed, 26 May 2010 03:55:41 +0000 (15:55 +1200)] 
Updated documentation

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 26 May 2010 03:53:10 +0000 (15:53 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Change LDAP helpers to default to LDAP version 3 if available

World has moved on, and it's now not uncommon to find LDAP servers not
accepting the old version 2.

13 years agoAuthor: Xavier Redon <xavier.redon@polytech-lille.fr>
Amos Jeffries [Wed, 26 May 2010 03:50:23 +0000 (15:50 +1200)] 
Author: Xavier Redon <xavier.redon@polytech-lille.fr>
Bug 2933: Verification of the max. port number for WCCP2 dynamic service

13 years agoDump refresh_pattern config as single lines not pairs
Amos Jeffries [Wed, 26 May 2010 03:49:37 +0000 (15:49 +1200)] 
Dump refresh_pattern config as single lines not pairs

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 26 May 2010 03:46:04 +0000 (15:46 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Author: Amos Jeffries <squid3@treenet.co.nz>
Fixed IpAddress port printing for ports higher than 9999:

snprintf includes zero-terminator in its size limit, so 7
rather than 6 bytes are needed to snprintf a colon followed
by 5 port digits.

Also, fix ToHostname calculation potentially truncating port numbers

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 26 May 2010 03:43:53 +0000 (15:43 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2633: Fix Ecap::HeaderRep::value(name) fails when there is no named header field

Calling Adaptation::Ecap::HeaderRep::value(const Name &name) with names
of header fields that do not exist leads to

    ICAP/AsyncJob.cc(218) dial: AsyncJob::noteStart threw exception:
    basic_string::_S_construct NULL not valid

I suspect this is a combination of
 - std::string constructor incapable of handling a nil char* pointer.
 - String::termedBuf() returning an nil pointer when the string is empty.

When there is no specified header field in the message, the value()
wrapper in Squid gets an empty String for the header value, which is
then used to create std::string, which fails or leads to failure.

I think it is wrong for termedBuf to return nil (because nil is not
0-terminated). I have not tried to fix that because we will have a new
String class soon.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 26 May 2010 03:40:20 +0000 (15:40 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2922: Fix assertion failed: HttpHeader.cc: "Headers[id].stat.aliveCount"

Fixed header accounting to avoid the "Headers[id].stat.aliveCount" assertion.

We were incrementing the alive header field counter twice for each decrement,
which probably resulted in the alive counter wrapping back to zero, triggering
the assertion.

13 years agoUpdated follow_x_forwarded-for documentation
Amos Jeffries [Tue, 25 May 2010 23:39:46 +0000 (11:39 +1200)] 
Updated follow_x_forwarded-for documentation

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 23 May 2010 11:25:59 +0000 (23:25 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2879: pt2: 3.0 regression in headers end finding

Consider the case when we received an empty (zero bytes) response.

The committed hack (bzr r9935) makes the "Invalid Response" warning misleading
because it adds CRLF to the empty response. The same hack makes the correct
error determination even more broken than it was (because the rest of the code
now sees content when none exited). It also mentions the wrong bug number.

The attached patch fixes the above and attempts to route empty response
processing to the right error (ERR_ZERO_SIZE_OBJECT).

TODO: Reconsider polluting cache.log with unlimited Invalid Response warnings,
at least in a forward proxy environment where the admin has no control over
responses.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 23 May 2010 11:14:39 +0000 (23:14 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2896 fix: assertion failed: comm.cc:2063: "!fd_table[fd].closing()"

When comm_close() has been called for the server fd but the close handler has
not yet been activated, the Server may receive an async call not associated
with the fd (e.g., more request body data coming from the HTTP or ICAP client)
that prompts the server to write to the fd.  We now check whether it is still
safe to write before writing. If it is not safe, we do not write but wait for
our close handler to be called.

TODO: when all comm_write callers check for fd closing, comm API can be
redefined to drop unsafe calls instead of asserting.

13 years agoCorrect documentation for squid_db_auth helper
Amos Jeffries [Mon, 17 May 2010 11:04:51 +0000 (23:04 +1200)] 
Correct documentation for squid_db_auth helper

13 years agoReset all addresses as OK after trying them all. This to avoid a "deadlock"
Henrik Nordstrom [Fri, 14 May 2010 12:40:35 +0000 (14:40 +0200)] 
Reset all addresses as OK after trying them all. This to avoid a "deadlock"
when all addresses of the currnet procotol have been marked bad but
there remains addresses in another protocol which means there is no addresses
we can connect to but unfortunately we don't know that in the current
upside-down layering.

13 years agoBug #2876: FD_SETSIZE override not working on all linux distributions
Henrik Nordstrom [Fri, 14 May 2010 12:02:06 +0000 (14:02 +0200)] 
Bug #2876: FD_SETSIZE override not working on all linux distributions

The glibc hack for overriding FD_SETSIZE seems to have broken down on some families
of Linux distribution, requiring one more header to be included before redefine.

Hopefully this does not break the FD_SETSIZE override on more systems than
it fixes.. if it does then some additional autoconffuu will be needed.

13 years agoFix non-IPv6 build failure introduced by the commResetFD cleanup
Henrik Nordstrom [Fri, 14 May 2010 05:54:32 +0000 (07:54 +0200)] 
Fix non-IPv6 build failure introduced by the commResetFD cleanup

13 years agoFall back on IPv4 if IPv6 is not present
Henrik Nordstrom [Fri, 14 May 2010 05:39:29 +0000 (07:39 +0200)] 
Fall back on IPv4 if IPv6 is not present

automatically fall back on IPv4 operation if it fails creating an
IPv6 socket. This may happen if Squid is built with IPv6 support
enabled but no IPv6 stack is available when it runs.

13 years agoPatch cleanup
Henrik Nordstrom [Fri, 14 May 2010 04:39:44 +0000 (06:39 +0200)] 
Patch cleanup

13 years agoClean up default config addresses to not hardcode IPv4
Henrik Nordstrom [Fri, 14 May 2010 04:37:13 +0000 (06:37 +0200)] 
Clean up default config addresses to not hardcode IPv4

13 years agoMerged from trunk
Henrik Nordstrom [Fri, 14 May 2010 04:17:17 +0000 (06:17 +0200)] 
Merged from trunk

13 years agoMore work on IPv4 fallback. Preserve IPv4 address status, and kill unused check4Mappe...
Henrik Nordstrom [Fri, 14 May 2010 04:16:42 +0000 (06:16 +0200)] 
More work on IPv4 fallback. Preserve IPv4 address status, and kill unused check4Mapped method

13 years agoClean up use of commResetFD when socket incompatible with requested address
Henrik Nordstrom [Fri, 14 May 2010 04:13:30 +0000 (06:13 +0200)] 
Clean up use of commResetFD when socket incompatible with requested address

This patch backs out part of the patch for Bug #2222 and replaces it by
crudely cycling over the available addresses, trying to skip over
addresses not compatible with the current socket.

This solves issues seen when using tproxy or tcp_outgoing_address and
DNS of the requested host returns AAAA records in addition to A records.

This change is interim, waiting for the larger connection setup
overhaul, but seems to do the trick for now.

One effect of this change is that there will be no fallback to the other
IP generation if the socket is configured to a specific outgoing
address. Priory the code threw away the outgoing address and tried
again when encountering an incompatibility.

13 years agoCleanup patch
Henrik Nordstrom [Fri, 14 May 2010 04:02:18 +0000 (06:02 +0200)] 
Cleanup patch

13 years agoCleanup patch
Henrik Nordstrom [Fri, 14 May 2010 03:58:00 +0000 (05:58 +0200)] 
Cleanup patch

13 years agoCleanup patch
Henrik Nordstrom [Fri, 14 May 2010 03:52:44 +0000 (05:52 +0200)] 
Cleanup patch

13 years agoIPv4 fallback if IPv6 disabled
Henrik Nordstrom [Fri, 14 May 2010 02:07:21 +0000 (04:07 +0200)] 
IPv4 fallback if IPv6 disabled

13 years agoindented
Henrik Nordstrom [Fri, 14 May 2010 01:38:27 +0000 (03:38 +0200)] 
indented

13 years agoCorrect IPv4 over IPv6 test
Henrik Nordstrom [Fri, 14 May 2010 01:29:58 +0000 (03:29 +0200)] 
Correct IPv4 over IPv6 test

13 years agoCorrect F->sock_family setting on accept sockets, ipv6/ipv4 compile condition was...
Henrik Nordstrom [Fri, 14 May 2010 01:08:15 +0000 (03:08 +0200)] 
Correct F->sock_family setting on accept sockets, ipv6/ipv4 compile condition was reversed

13 years agomerged from 3.1
Henrik Nordstrom [Thu, 13 May 2010 11:32:40 +0000 (13:32 +0200)] 
merged from 3.1

13 years agoTry to address IPv4 over IPv6-only sockets
Henrik Nordstrom [Thu, 13 May 2010 11:19:59 +0000 (13:19 +0200)] 
Try to address IPv4 over IPv6-only sockets

13 years agoAuthor: Wojciech Zatorski <zator@bg.szczecin.pl>
Amos Jeffries [Wed, 12 May 2010 08:57:35 +0000 (20:57 +1200)] 
Author: Wojciech Zatorski <zator@bg.szczecin.pl>
Bug 2919: tcp_outgoing_address ACLs not obeying acl_uses_indirect_client

13 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 12 May 2010 08:39:09 +0000 (20:39 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Rename generated fragments to .cci to avoid misunderstandings (was .h).

Applies to cf_parser.cci and cf_gen_defines.cci

13 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Wed, 12 May 2010 05:23:26 +0000 (17:23 +1200)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed several symbol clashes in auth helpers.

13 years agoAuthor: R Phillips <r.phillips@uq.edu.au>
Amos Jeffries [Wed, 12 May 2010 04:04:11 +0000 (16:04 +1200)] 
Author: R Phillips <r.phillips@uq.edu.au>
Bug 2924: RADIUS helper compile issues

14 years agoClean up commReset use in combination with tproxy or tcp_outgoing_address
Henrik Nordstrom [Tue, 11 May 2010 01:35:41 +0000 (03:35 +0200)] 
Clean up commReset use in combination with tproxy or tcp_outgoing_address

14 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Wed, 5 May 2010 07:42:45 +0000 (19:42 +1200)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Portability fix: improve detecition of libdb-related headers.

14 years agoOpenSolaris: PAM conversation defined non-const
Amos Jeffries [Tue, 4 May 2010 13:42:02 +0000 (01:42 +1200)] 
OpenSolaris: PAM conversation defined non-const

14 years agoAuthor: Matthias "Silamael" <Silamael@coronamundi.de>
Amos Jeffries [Tue, 4 May 2010 08:59:34 +0000 (20:59 +1200)] 
Author: Matthias "Silamael" <Silamael@coronamundi.de>
OpenBSD 4.6 build error: FD_SETSIZE redefined

14 years ago3.1.3 SQUID_3_1_3
Amos Jeffries [Sun, 2 May 2010 10:46:37 +0000 (04:46 -0600)] 
3.1.3

14 years agoPrep for 3.1.3
Amos Jeffries [Sun, 2 May 2010 10:35:50 +0000 (22:35 +1200)] 
Prep for 3.1.3

14 years agoACL Tag requires request not conn
Amos Jeffries [Sun, 2 May 2010 10:14:12 +0000 (22:14 +1200)] 
ACL Tag requires request not conn

This makes the tag ACL type work in most access lists.

Connection details are not always available and not actually needed by tag.

14 years agoRemove HTTP/1.1 sent to clients.
Amos Jeffries [Sun, 2 May 2010 03:56:18 +0000 (15:56 +1200)] 
Remove HTTP/1.1 sent to clients.

14 years ago3.1.2 SQUID_3_1_2
Amos Jeffries [Sat, 1 May 2010 11:39:11 +0000 (05:39 -0600)] 
3.1.2

14 years agoPrep for 3.1.2
Amos Jeffries [Sat, 1 May 2010 09:42:05 +0000 (21:42 +1200)] 
Prep for 3.1.2

14 years agoMake Ip::Address < operator work with NOADDR
Amos Jeffries [Sat, 1 May 2010 08:55:19 +0000 (20:55 +1200)] 
Make Ip::Address < operator work with NOADDR