]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
15 years agoUtilize comm/forward.h for small pre-definitions
Amos Jeffries [Tue, 8 Jun 2010 14:03:24 +0000 (02:03 +1200)] 
Utilize comm/forward.h for small pre-definitions

15 years agoMerge from trunk
Amos Jeffries [Thu, 3 Jun 2010 07:18:25 +0000 (19:18 +1200)] 
Merge from trunk

15 years agoClean generated AutHType file
Amos Jeffries [Thu, 3 Jun 2010 03:13:42 +0000 (15:13 +1200)] 
Clean generated AutHType file

15 years agoSourceFormat Enforcement
Automatic source maintenance [Thu, 3 Jun 2010 00:12:32 +0000 (18:12 -0600)] 
SourceFormat Enforcement

15 years agoBug 2305: Multiple leaks and assertion crashes in authentication.
Amos Jeffries [Wed, 2 Jun 2010 13:44:26 +0000 (01:44 +1200)] 
Bug 2305: Multiple leaks and assertion crashes in authentication.

 * implements proper RefCounting using the RefCount.h classes for
   almost all auth objects in Squid.

 * Restructures auth objects with a simpler structure of duties and scopes.

 * Prunes away several circular and indirectly circular pointer loops

 * Adds an API to auth config for handling the mainRotate() event. To only
   shutdown helpers, fixing the loss of cached credentials on rotate.

 * Adds a username_cache page to cachemgr interface to display the current
   credentials and their TTLs to various revalidation or garbage events.

With this we end up with several global pointers for the auth schemes which
have been built into the current Squid. These are RefCount pointers, fixing
the leak of schemes on shutdown. Schemes are now also permanent structures
for the runtime of Squid, fixing leaks on reconfigure and rotate actions.

These AuthSchemes are responsible for creating auth Config objects for each
auth protocol configured in squid.conf. These config objects are now also
able to be altered with a reconfigure instead of requiring a restart.

Each HTTP request authentication attempt generates AuthUserRequest objects,
which may or may not pointer to an AuthUser set of credentials being checked.
AuthUserRequest is RefCounted instead of locked, fixing several assertion
crashes.

AuthUser is now RefCounted instead of locked. It's children inherit
these properties. This simplifies the object handling a lot and fixes
several assertions.
 * This also means AuthUser no longer needs a back-pointer to all
AuthUserRequest in order to see if its still needed alive, fixing one
circular lock loop and a few possible assertions.
 * The username cache pointers to only AuthUser objects, fixing a second
cirular lock loop and potentially leakage. Also simplifying the hash cache
handling a lot.

Non-Auth code needing a reference to authentication credentials should
hold a pointer to either an AuthUserRequest or AuthUser object. Not any
other auth object.

FUTURE WORK;
 There is still some conditions leading to auth re-challenge when they
 are not expected.
 A fair chunk of classes and enums have been shuffled into separate files
 to keep the scopes clearer. This could be increased in future when
 building the Auth namespace.
 Potential is now present for simpler TTL handling for all auth types.

This work was a collaboration between multiple interested parties over
the last year, with additional developer time and testing funded by
Netspace Online Systems.

15 years agoMerge from trunk
Amos Jeffries [Wed, 2 Jun 2010 13:36:08 +0000 (01:36 +1200)] 
Merge from trunk

15 years agoMerge from trunk
Amos Jeffries [Wed, 2 Jun 2010 13:35:20 +0000 (01:35 +1200)] 
Merge from trunk

15 years agoSourceFormat Enforcement
Automatic source maintenance [Tue, 1 Jun 2010 00:12:34 +0000 (18:12 -0600)] 
SourceFormat Enforcement

15 years agoBug #2938: Removal of DNS CNAME code broke acl dst lookups
Henrik Nordstrom [Mon, 31 May 2010 20:30:51 +0000 (22:30 +0200)] 
Bug #2938: Removal of DNS CNAME code broke acl dst lookups

lookup code failed to handle the case where handler == NULL properly, was only partially implemented

15 years agoBug #2937: Fails to detect chunked encoding if not given in all lower case
Henrik Nordstrom [Mon, 31 May 2010 19:51:06 +0000 (21:51 +0200)] 
Bug #2937: Fails to detect chunked encoding if not given in all lower case

15 years agoDocument libntlm.la library API
Amos Jeffries [Mon, 31 May 2010 12:20:10 +0000 (00:20 +1200)] 
Document libntlm.la library API

15 years agoAdd omitted CLEANFILES to basic scripts Makefiles
Amos Jeffries [Mon, 31 May 2010 11:27:28 +0000 (23:27 +1200)] 
Add omitted CLEANFILES to basic scripts Makefiles

15 years agoSubstitute Perl shell path into Basic auth helper scripts
Amos Jeffries [Mon, 31 May 2010 09:32:19 +0000 (21:32 +1200)] 
Substitute Perl shell path into Basic auth helper scripts

This fixes these helpers by default on OS where the perl shell is not at
/usr/bin/perl. The problem of cross-compiling shell variation remains as
it was before.

TODO: roll out to other installed scripts

15 years agoSourceFormat Enforcement
Automatic source maintenance [Mon, 31 May 2010 00:12:32 +0000 (18:12 -0600)] 
SourceFormat Enforcement

15 years agoPrep for 3.1.4
Amos Jeffries [Sun, 30 May 2010 10:56:55 +0000 (22:56 +1200)] 
Prep for 3.1.4

15 years agoReally disable IPv6 NDP lookup.
Amos Jeffries [Sun, 30 May 2010 09:46:06 +0000 (21:46 +1200)] 
Really disable IPv6 NDP lookup.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Henrik Nordstrom [Sun, 30 May 2010 09:13:54 +0000 (11:13 +0200)] 
Author:  Alex Rousskov <rousskov@measurement-factory.com>
Bug #2789: Optimize unlimited memory pools, and correctly handle limits > 2GB.

15 years agoSourceFormat Enforcement
Automatic source maintenance [Sun, 30 May 2010 00:15:16 +0000 (18:15 -0600)] 
SourceFormat Enforcement

15 years agoRework memory pools
Henrik Nordstrom [Sat, 29 May 2010 22:02:54 +0000 (00:02 +0200)] 
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).

15 years agoDocument --disable-mempools configure option as removed
Henrik Nordstrom [Sat, 29 May 2010 18:44:25 +0000 (20:44 +0200)] 
Document --disable-mempools configure option as removed

15 years ago--with-dns-cname was removed from 3.1 some time ago
Henrik Nordstrom [Sat, 29 May 2010 18:43:11 +0000 (20:43 +0200)] 
--with-dns-cname was removed from 3.1 some time ago

15 years agoRemove --enable-chunkedmempools configure option. The chunked alloctor is now experim...
Henrik Nordstrom [Sat, 29 May 2010 18:39:21 +0000 (20:39 +0200)] 
Remove --enable-chunkedmempools configure option. The chunked alloctor is now experimental and likely being phased out.

15 years agoRestore strict perl on DB helper
Amos Jeffries [Sat, 29 May 2010 10:18:33 +0000 (22:18 +1200)] 
Restore strict perl on DB helper

15 years agoRename --disable-mempools to --enable-chunkedmempools to reflect it's function
Henrik Nordstrom [Sat, 29 May 2010 01:31:01 +0000 (03:31 +0200)] 
Rename --disable-mempools to --enable-chunkedmempools to reflect it's function

15 years agoBlank out memory chunk statistics when not using chunked allocator
Henrik Nordstrom [Sat, 29 May 2010 01:19:53 +0000 (03:19 +0200)] 
Blank out memory chunk statistics when not using chunked allocator

15 years agoCorrect saved allocations statistics
Henrik Nordstrom [Sat, 29 May 2010 01:06:38 +0000 (03:06 +0200)] 
Correct saved allocations statistics

15 years agoSimple freelist in malloc based pool allocator
Henrik Nordstrom [Sat, 29 May 2010 00:59:35 +0000 (02:59 +0200)] 
Simple freelist in malloc based pool allocator

15 years agoFix statistics
Henrik Nordstrom [Fri, 28 May 2010 23:51:08 +0000 (01:51 +0200)] 
Fix statistics

15 years agoMerged from trunk
Henrik Nordstrom [Fri, 28 May 2010 21:56:44 +0000 (23:56 +0200)] 
Merged from trunk

15 years agoCorrect common log format line ending output
Henrik Nordstrom [Fri, 28 May 2010 21:56:27 +0000 (23:56 +0200)] 
Correct common log format line ending output

15 years agoSplit MemPool.cc into generic framework and specific implementation
Henrik Nordstrom [Fri, 28 May 2010 21:53:06 +0000 (23:53 +0200)] 
Split MemPool.cc into generic framework and specific implementation

15 years agoDisable memory pools by default
Henrik Nordstrom [Fri, 28 May 2010 14:15:11 +0000 (16:15 +0200)] 
Disable memory pools by default

15 years agoBug 2810: common log format generates 2 lines of syslog
Amos Jeffries [Fri, 28 May 2010 03:59:04 +0000 (15:59 +1200)] 
Bug 2810: common log format generates 2 lines of syslog

Based on work by Keyran Bayliss

15 years agoAudit fixes
Amos Jeffries [Thu, 27 May 2010 12:44:59 +0000 (00:44 +1200)] 
Audit fixes

15 years agoAuthor: Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
Amos Jeffries [Thu, 27 May 2010 12:34:35 +0000 (00:34 +1200)] 
Author: Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
Add Joomla and Salted Hash support to basic_db_auth helper

15 years agoPolished source-maintenance
Amos Jeffries [Thu, 27 May 2010 11:16:08 +0000 (05:16 -0600)] 
Polished source-maintenance

15 years agoMake source-maintenance.sh recurse again
Amos Jeffries [Thu, 27 May 2010 04:31:17 +0000 (16:31 +1200)] 
Make source-maintenance.sh recurse again

15 years agoRemove some excess whitespace
Amos Jeffries [Thu, 27 May 2010 04:07:20 +0000 (16:07 +1200)] 
Remove some excess whitespace

15 years agoMerge from trunk
Amos Jeffries [Thu, 27 May 2010 01:56:23 +0000 (13:56 +1200)] 
Merge from trunk

15 years agoMerge from trunk
Amos Jeffries [Thu, 27 May 2010 01:31:51 +0000 (13:31 +1200)] 
Merge from trunk

15 years agoMerge from trunk
Amos Jeffries [Thu, 27 May 2010 01:31:14 +0000 (13:31 +1200)] 
Merge from trunk

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Thu, 27 May 2010 00:51:44 +0000 (12:51 +1200)] 
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.

15 years agoAuthor: Various Translators
Amos Jeffries [Wed, 26 May 2010 12:01:39 +0000 (00:01 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoBug 2877: pt2: only output zero-size warning on reverse-proxy requests
Amos Jeffries [Wed, 26 May 2010 09:05:12 +0000 (21:05 +1200)] 
Bug 2877: pt2: only output zero-size warning on reverse-proxy requests

15 years agoAdd source-maintenance.sh to perform automated Maintenance Updates
Amos Jeffries [Wed, 26 May 2010 03:06:02 +0000 (15:06 +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.

15 years agoUpdated documentation
Amos Jeffries [Wed, 26 May 2010 02:03:36 +0000 (14:03 +1200)] 
Updated documentation

15 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 26 May 2010 00:13:11 +0000 (18:13 -0600)] 
SourceFormat Enforcement

15 years agoChange LDAP helpers to default to LDAP version 3 if available
Henrik Nordstrom [Tue, 25 May 2010 21:19:26 +0000 (23:19 +0200)] 
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.

15 years agoDefault-OFF and extra warnings for tproxy_uses_indirect_client option
Amos Jeffries [Tue, 25 May 2010 11:27:15 +0000 (23:27 +1200)] 
Default-OFF and extra warnings for tproxy_uses_indirect_client option

15 years agoAuthor: Wojciech Zatorski <zator@bg.szczecin.pl>
Amos Jeffries [Tue, 25 May 2010 11:12:20 +0000 (23:12 +1200)] 
Author: Wojciech Zatorski <zator@bg.szczecin.pl>
Author: Amos Jeffries <squid3@treenet.co.nz>
Support TPROXYv4 spoofing of X-Forwarded-For client address.

Assumes correct configuration use of the X-Forwarded-For header with
a zone of trusted sources.

SECURITY WARNING:
    This patch depends on security features not present in older Squid
    versions and is not to be ported or applied to earlier releases.

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

15 years agoAuthor: Mark Nottingham <mnot@pobox.com>
Amos Jeffries [Tue, 25 May 2010 10:30:55 +0000 (22:30 +1200)] 
Author: Mark Nottingham <mnot@pobox.com>
Bug 2631: store-stale refresh_pattern option

RFC2616 allows almost anything to be cached*; most of the constraints are on
what can be used out of cache.

For example, this response:

HTTP/1.1 200 OK
Content-Type: text/html
Date: [date]

[ content ]

is cacheable as per HTTP; it just is considered stale as soon as it is cached.

However, Squid (and many others) don't cache all of these responses, at least
in part because doing so would decrease cache efficiency, and introduce more
load (e.g., on disk subsystems, etc.).

In particular, Squid won't cache a response unless it has either explicit
freshness (e.g., Expires, CC: max-age) or a validator (Last-Modified or ETag).

Nevertheless, doing so is desirable in some circumstances, because in some
deployments the client wants to be able to ask for a stale response. For
example;

GET /foo HTTP/1.1
Host: example.com
Cache-Control: max-age=3600, max-stale

Should retrieve the above response from cache, as long as it is less than an
hour old.

This patch adds a 'store-stale' refresh_pattern option that allows this.

15 years agoDump refresh_pattern config as single lines not pairs
Amos Jeffries [Tue, 25 May 2010 09:46:48 +0000 (21:46 +1200)] 
Dump refresh_pattern config as single lines not pairs

15 years agoAudit corrections
Amos Jeffries [Tue, 25 May 2010 09:35:01 +0000 (21:35 +1200)] 
Audit corrections

15 years agoFix ToHostname potentially truncating port numbers
Amos Jeffries [Mon, 24 May 2010 01:56:50 +0000 (13:56 +1200)] 
Fix ToHostname potentially truncating port numbers

15 years agoSourceFormat Enforcement
Automatic source maintenance [Mon, 24 May 2010 00:20:00 +0000 (18:20 -0600)] 
SourceFormat Enforcement

15 years agoFixed IpAddress port printing for ports higher than 9999:
Alex Rousskov [Sun, 23 May 2010 23:04:05 +0000 (17:04 -0600)] 
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.

15 years agoBug 2633 fix: Ecap::HeaderRep::value(name) fails when there is no named header
Alex Rousskov [Sun, 23 May 2010 16:43:46 +0000 (10:43 -0600)] 
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.

15 years agoBug 2922 fix: assertion failed: HttpHeader.cc: "Headers[id].stat.aliveCount"
Alex Rousskov [Sun, 23 May 2010 16:37:30 +0000 (10:37 -0600)] 
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.

15 years agoRemove some cruft before audit
Amos Jeffries [Sun, 23 May 2010 12:40:04 +0000 (00:40 +1200)] 
Remove some cruft before audit

15 years agoMerge from trunk
Amos Jeffries [Sun, 23 May 2010 12:00:47 +0000 (00:00 +1200)] 
Merge from trunk

15 years agobuild errors after trunk update to IpAddress
Amos Jeffries [Sun, 23 May 2010 11:59:28 +0000 (23:59 +1200)] 
build errors after trunk update to IpAddress

15 years agoAuthor: Various Translators
Amos Jeffries [Sun, 23 May 2010 00:01:59 +0000 (12:01 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agodocument why conn gets released explicitly early on pinning
Amos Jeffries [Sat, 22 May 2010 06:42:56 +0000 (18:42 +1200)] 
document why conn gets released explicitly early on pinning

15 years agoMerge from trunk
Amos Jeffries [Sat, 22 May 2010 06:35:57 +0000 (18:35 +1200)] 
Merge from trunk

15 years agomake Comm::Connection ref-counted and fix pconn handling.
Amos Jeffries [Sat, 22 May 2010 06:34:14 +0000 (18:34 +1200)] 
make Comm::Connection ref-counted and fix pconn handling.

15 years agoWrap extra IPv6 comm failover cases properly.
Amos Jeffries [Sat, 22 May 2010 05:59:58 +0000 (17:59 +1200)] 
Wrap extra IPv6 comm failover cases properly.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sat, 22 May 2010 03:55:41 +0000 (15:55 +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.

15 years agoSourceFormat Enforcement
Automatic source maintenance [Sat, 22 May 2010 00:13:00 +0000 (18:13 -0600)] 
SourceFormat Enforcement

15 years agoBug 2896 fix: assertion failed: comm.cc:2063: "!fd_table[fd].closing()"
Alex Rousskov [Sat, 22 May 2010 00:07:57 +0000 (18:07 -0600)] 
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.

15 years agoSync socket family type to the outgoing address family.
Amos Jeffries [Fri, 21 May 2010 04:17:56 +0000 (16:17 +1200)] 
Sync socket family type to the outgoing address family.

This evades the COMM_ERR_PROTOCOL results from comm_connect_addr.
Ideally those errors would now be unused, however there are still
components which call comm_connect_addr directly.

15 years agoHandle forwarding timeout better.
Amos Jeffries [Thu, 20 May 2010 12:05:46 +0000 (00:05 +1200)] 
Handle forwarding timeout better.

15 years agoRemove useless address copy from idns
Amos Jeffries [Thu, 20 May 2010 12:00:01 +0000 (00:00 +1200)] 
Remove useless address copy from idns

15 years agoActually do DNS after peers selected
Amos Jeffries [Thu, 20 May 2010 11:59:14 +0000 (23:59 +1200)] 
Actually do DNS after peers selected

15 years agoSet remote server port on peer selection
Amos Jeffries [Wed, 19 May 2010 12:42:55 +0000 (00:42 +1200)] 
Set remote server port on peer selection

15 years agoMerge from trunk
Amos Jeffries [Wed, 19 May 2010 11:42:48 +0000 (23:42 +1200)] 
Merge from trunk

15 years agoComm restructure part 2 - outbound connections
Amos Jeffries [Wed, 19 May 2010 11:28:21 +0000 (23:28 +1200)] 
Comm restructure part 2 - outbound connections

15 years agoAuthor: Various Translators
Amos Jeffries [Sat, 15 May 2010 18:00:41 +0000 (06:00 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoReset all addresses as OK after trying them all. This to avoid a "deadlock"
Henrik Nordstrom [Fri, 14 May 2010 12:34:31 +0000 (14:34 +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.

15 years agoBug #2876: FD_SETSIZE override not working on all linux distributions
Henrik Nordstrom [Fri, 14 May 2010 12:05:27 +0000 (14:05 +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.

15 years agoFall back on IPv4 if IPv6 is not present
Henrik Nordstrom [Fri, 14 May 2010 05:37:19 +0000 (07:37 +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.

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

15 years agoClean up use of commResetFD when socket incompatible with requested address
Henrik Nordstrom [Fri, 14 May 2010 04:04:53 +0000 (06:04 +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.

15 years agoMerging fix from autoconf-refactor branch.
Francesco Chemolli [Thu, 13 May 2010 15:27:12 +0000 (17:27 +0200)] 
Merging fix from autoconf-refactor branch.

15 years agoFixed bug in configure which would prevent properly detecting epoll availability.
Francesco Chemolli [Thu, 13 May 2010 15:25:16 +0000 (17:25 +0200)] 
Fixed bug in configure which would prevent properly detecting epoll availability.

15 years agoRenamed config define FORW_VIA_DB to standard USE_FORW_VIA_DB
Francesco Chemolli [Thu, 13 May 2010 15:08:27 +0000 (17:08 +0200)] 
Renamed config define FORW_VIA_DB to standard USE_FORW_VIA_DB

15 years agoReworded unbalanced apostrophes to help syntax parsers in editors.
Francesco Chemolli [Thu, 13 May 2010 14:54:19 +0000 (16:54 +0200)] 
Reworded unbalanced apostrophes to help syntax parsers in editors.

15 years agoMerged from trunk
Francesco Chemolli [Thu, 13 May 2010 14:36:54 +0000 (16:36 +0200)] 
Merged from trunk

15 years agoMerge from trunk
Amos Jeffries [Thu, 13 May 2010 06:48:36 +0000 (18:48 +1200)] 
Merge from trunk

15 years agoMerge from trunk
Amos Jeffries [Thu, 13 May 2010 06:20:23 +0000 (18:20 +1200)] 
Merge from trunk

15 years agoAuthor: Alex Rousskov <rousskov@squid-cache.org>
Amos Jeffries [Thu, 13 May 2010 06:16:33 +0000 (18:16 +1200)] 
Author: Alex Rousskov <rousskov@squid-cache.org>
Bug 2896: assertion failed: comm.cc:2063: !fd_table[fd].closing()

15 years agoAuthor: Various Translators
Amos Jeffries [Wed, 12 May 2010 12:01:09 +0000 (00:01 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoAuthor: Various Translators
Amos Jeffries [Tue, 11 May 2010 12:00:54 +0000 (00:00 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoSourceFormat Enforcement
Automatic source maintenance [Tue, 11 May 2010 00:13:13 +0000 (18:13 -0600)] 
SourceFormat Enforcement

15 years agoKill unused DNS_CNAME code
Henrik Nordstrom [Mon, 10 May 2010 20:41:56 +0000 (22:41 +0200)] 
Kill unused DNS_CNAME code

15 years agoRestore LINUX_NETFILTER define which got lost as part of the autoconf refactoring
Henrik Nordstrom [Mon, 10 May 2010 20:40:18 +0000 (22:40 +0200)] 
Restore LINUX_NETFILTER define which got lost as part of the autoconf refactoring

15 years agoRevert unintended "res == 0" change which sneaked in as part of killing rfc1035_errno...
Henrik Nordstrom [Mon, 10 May 2010 20:39:35 +0000 (22:39 +0200)] 
Revert unintended "res == 0" change which sneaked in as part of killing rfc1035_errno & error_messages

15 years agoAuthor: Various Translators
Amos Jeffries [Mon, 10 May 2010 18:01:13 +0000 (06:01 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoRevert revision 10471 due to mixed commit. Proper commit in a few seconds
Henrik Nordstrom [Mon, 10 May 2010 14:53:23 +0000 (16:53 +0200)] 
Revert revision 10471 due to mixed commit. Proper commit in a few seconds

15 years agoRevert unintended "res == 0" change which sneaked in as part of killing rfc1035_errno...
Henrik Nordstrom [Mon, 10 May 2010 13:16:13 +0000 (15:16 +0200)] 
Revert unintended "res == 0" change which sneaked in as part of killing rfc1035_errno & error_messages