]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
13 years agoPortability fix: remove GNU-specific syntax
Amos Jeffries [Sun, 13 May 2012 03:26:00 +0000 (15:26 +1200)] 
Portability fix: remove GNU-specific syntax

detected by clang++.

13 years agoBug 3537: statistics histogram leaks memory
Timo Teras [Sat, 12 May 2012 03:48:02 +0000 (21:48 -0600)] 
Bug 3537: statistics histogram leaks memory

13 years agoLog TCP_REDIRECT when Squid generates a 300-399 status response
Amos Jeffries [Sat, 12 May 2012 03:21:00 +0000 (21:21 -0600)] 
Log TCP_REDIRECT when Squid generates a 300-399 status response

To identify when 3xx is received from upstream or generated by Squid.

3xx from servers or ICAP/eCAP will continue to use TCP_MISS
and other status codes.

13 years agoBug 2885: AIX: check and set required compiler flags
Karl Benoit [Fri, 11 May 2012 05:45:20 +0000 (17:45 +1200)] 
Bug 2885: AIX: check and set required compiler flags

13 years agoBug 3466: Adaptation stuck on last single-byte body piece
Alex Rousskov [Tue, 8 May 2012 18:14:08 +0000 (12:14 -0600)] 
Bug 3466: Adaptation stuck on last single-byte body piece

Changed StoreEntry::bytesWanted(range) to return range.end when the entry can
accommodate range.end bytes. This makes it possible to use that method for
single-byte ranges. Old code returned zero for such ranges, which was
difficult to distinguish from situations where no bytes were wanted at all.

TODO: The StoreEntry::bytesWanted(range) API is left undocumented because it
seems to be slightly broken and/or inconsistent with callers and with the
DelayId::bytesWanted(min, max) API. AFAICT, we should convert
StoreEntry::bytesWanted API from range-based to min/max-based or even just
max-based.

Store Entry API does not use the lower end of the range (except for the
now-removed assertion that the range is not empty). I suspect that Store API
was meant to be used with (first, last+1) "byte position" parameters (returning
the number of bytes wanted) while the DelayId API was meant to be used with
(min, max) "number of bytes" parameters.  However, StoreEntry::bytesWanted
implementation does not follow this assumption so perhaps my speculation is
wrong and there are more problems, including this change.

13 years agoDrop ACCESS_AUTH_EXPIRED_* extended auth states
Amos Jeffries [Tue, 8 May 2012 01:21:10 +0000 (19:21 -0600)] 
Drop ACCESS_AUTH_EXPIRED_* extended auth states

Alternative approaches being discussed by squid-dev still, but agreed
that this was the wrong approach to implementation rollout.

13 years agoRevert revno11955 fix for bug 3444
Amos Jeffries [Tue, 8 May 2012 01:13:51 +0000 (19:13 -0600)] 
Revert revno11955 fix for bug 3444

13 years agoAdd support for TLSv1.1 and TLSv1.2 options and methods
Amos Jeffries [Sun, 6 May 2012 01:29:22 +0000 (19:29 -0600)] 
Add support for TLSv1.1 and TLSv1.2 options and methods

When OpenSSL v1.0.1+ is being built against.

Also update the documentation for sslproxy_version which was not
mentioning what the supported version codes were.

Future work:
* make version config option(s) accept a set of named versions and
  convert to codes internally.
* redesign how version and options are handled. Admin should be able to
  just list the TLSv* wanted and Squid figure out the appropriate options
  from there.

13 years agoRFC 6585 extends HTTP
Amos Jeffries [Sun, 6 May 2012 01:27:25 +0000 (19:27 -0600)] 
RFC 6585 extends HTTP

13 years agoSourceFormat Enforcement
Automatic source maintenance [Thu, 26 Apr 2012 01:04:17 +0000 (19:04 -0600)] 
SourceFormat Enforcement

13 years agoBug 3258: Requests hang when Host forgery verify fails
Guy Helmer [Wed, 25 Apr 2012 22:32:00 +0000 (10:32 +1200)] 
Bug 3258: Requests hang when Host forgery verify fails

13 years agoSSL and ssl_crtd was broken after latest changes
Christos Tsantilas [Wed, 25 Apr 2012 21:08:51 +0000 (00:08 +0300)] 
SSL and ssl_crtd was broken after latest changes

The http_port_list struct renamed to AnyP::PortCfg

13 years agoSourceLayout: port config and select-loop priority polishing
Amos Jeffries [Wed, 25 Apr 2012 05:29:20 +0000 (23:29 -0600)] 
SourceLayout: port config and select-loop priority polishing

- renames http_port_list to AnyP::PortCfg
- de-duplicate https_port_list into AnyP::PortCfg
- shuffles related globals and defines into anyp/PortCfg.*
- renames MAXHTTPPORTS to MAXTCPLISTENPORTS to suit its actual coverage of HTTP and HTTPS ports.
- shuffled config port clone function into a method.
- rename ICP/HTCP/SNMP API functions to consistent *OpenPorts() and *ClosePorts()

  NP:following applies to incoming_* and *_poll_cnt directives.
- renames *_icp_* to *_udp_*
- renames *_http_* to *_tcp_*
- shuffles duplicated struct SquidConf options into a shared structure
- shuffles related defines into comm/Loops.h
- documents options better

- various other cosmetic syntax tweaks and polish

One bug fix:
  comm_dns_incoming was not being propigated in StatsHist copy/clone.
  Now is. I seem to remember mention of something similar being zero before,
  but can't find the bug report.

13 years agoMark verified intercept traffic correctly after DNS lookup
Alexander Komyagin [Wed, 18 Apr 2012 22:28:06 +0000 (10:28 +1200)] 
Mark verified intercept traffic correctly after DNS lookup

13 years agoBug 3484: Docs: sslproxy_cert_error example flawed
Alex Rousskov [Thu, 12 Apr 2012 19:57:57 +0000 (13:57 -0600)] 
Bug 3484: Docs: sslproxy_cert_error example flawed

Synced ACL name after ACL type change in r12117.

This is still far from perfect because dstdomain is not really a FAST ACL
either: Its documentation says that it becomes slow on IP addresses.

13 years agoPrep for 3.2.0.17
Amos Jeffries [Thu, 12 Apr 2012 13:27:15 +0000 (07:27 -0600)] 
Prep for 3.2.0.17

13 years agoBug 3484: Docs: sslproxy_cert_error example flawed
Guy Helmer [Thu, 12 Apr 2012 03:12:59 +0000 (15:12 +1200)] 
Bug 3484: Docs: sslproxy_cert_error example flawed

13 years agoAdditional 308 status handling
Amos Jeffries [Wed, 11 Apr 2012 09:10:15 +0000 (03:10 -0600)] 
Additional 308 status handling

* relay "Permanent Redirect" message on status line
* MAY cache these responses with heuristics
* accept this status as a redirect status from URL redirectors

13 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 11 Apr 2012 00:15:57 +0000 (18:15 -0600)] 
SourceFormat Enforcement

13 years agoC++ type checking does not permit sockaddr static_cast
Amos Jeffries [Tue, 10 Apr 2012 12:02:15 +0000 (06:02 -0600)] 
C++ type checking does not permit sockaddr static_cast

13 years agoBug 3441: Part 3: Replace corrupted v1 swap.state with new v2 format.
Alex Rousskov [Tue, 10 Apr 2012 04:26:14 +0000 (22:26 -0600)] 
Bug 3441: Part 3: Replace corrupted v1 swap.state with new v2 format.

A fix for bug 3408 changed the offset at which we start writing dirty
swap.state entries from StoreSwapLogHeader::record_size to StoreSwapLogHeader
size.  However, the log-reading code still read the entries starting from the
old offset (which is required to remain compatible with how a clean swap.state
is written).

Wrong starting offset essentially means that the vast majority of read
swap.state entries were bogus. They could only match some real entry when 64*n
is divisible by 12 and perhaps when their random data just happened to match a
real entry. Part 2 of this bug fix (trunk r11995) started to pad the [dirty]
swap.state header to start entry writing at StoreSwapLogHeader::record_size
boundary.

Changes specific to Part 3:

Unfortunately, since old v1 logs could contain completely bogus entries as the
result of being read (at some point) from the wrong offset, we should not load
v1 logs any more (neither dirty nor clean because what looks clean now could
be based on a previously dirty and, hence, corrupted log). This forced us to
raise the swap.state format version from 1 to 2.

After this change, if a v1 swap log is detected, Squid ignores it and does a
from-directory rebuild as if no swap.state files were found.

Since we had to change swap.state format version, we also made log entry size
and composition the same across virtually all platforms; added checksums so
that a similar bug would not go unnoticed for so long (and would not result in
log corruption); and increased the size of time-related entries to avoid the
"year 2038" problem.

The swap log entries are still written to disk in host byte order.

We now also zero the [dirty] swap.state header padding to prevent random and
potentially sensitive garbage in logs.

Cache index rebuild kinds are now reported using the following three labels:

* Rebuild using a swap log created by Squid during clean shutdown: "clean log"
* Rebuild using a swap log accumulated by a running Squid: "dirty log"
* Rebuild using directory scan: "no log"

The first kind used to be reported as CLEAN and the other two as DIRTY rebuild.

13 years agoLanguage: fr updates
Bernard [Fri, 6 Apr 2012 18:05:45 +0000 (06:05 +1200)] 
Language: fr updates

13 years agoTypo in cachemgr CGI manual
Amos Jeffries [Thu, 5 Apr 2012 01:15:20 +0000 (13:15 +1200)] 
Typo in cachemgr CGI manual

13 years agoBug 3527: EUI compile errors on Mac OS X 10.5.8 PPC
Amos Jeffries [Wed, 4 Apr 2012 22:16:12 +0000 (10:16 +1200)] 
Bug 3527: EUI compile errors on Mac OS X 10.5.8 PPC

13 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 4 Apr 2012 00:21:57 +0000 (18:21 -0600)] 
SourceFormat Enforcement

13 years agoBug 3505: crash in CbcPointer<Comm::ConnOpener> constructor
Alex Rousskov [Tue, 3 Apr 2012 11:06:14 +0000 (23:06 +1200)] 
Bug 3505: crash in CbcPointer<Comm::ConnOpener> constructor

13 years agoNULL defined by our compat/types.h
Amos Jeffries [Tue, 3 Apr 2012 05:29:24 +0000 (23:29 -0600)] 
NULL defined by our compat/types.h

13 years agoAdd missing include in snmp_core.cc
Amos Jeffries [Tue, 3 Apr 2012 05:00:59 +0000 (17:00 +1200)] 
Add missing include in snmp_core.cc

13 years agoLanguage: fr updates
Bernard [Mon, 2 Apr 2012 18:05:47 +0000 (06:05 +1200)] 
Language: fr updates

13 years agoBootstrapped
Automatic source maintenance [Mon, 2 Apr 2012 04:59:33 +0000 (22:59 -0600)] 
Bootstrapped

13 years agoTypo in UdpOpenDialer
Amos Jeffries [Mon, 2 Apr 2012 02:25:40 +0000 (14:25 +1200)] 
Typo in UdpOpenDialer

13 years agoLanguage: fr updates
Bernard [Mon, 2 Apr 2012 00:05:59 +0000 (12:05 +1200)] 
Language: fr updates

13 years agoLanguage: pt_BR updates
Aecio F. [Sat, 31 Mar 2012 00:05:44 +0000 (12:05 +1200)] 
Language: pt_BR updates

13 years agoPolish: de-duplicate UDP port dialers
Amos Jeffries [Thu, 29 Mar 2012 09:22:41 +0000 (21:22 +1200)] 
Polish: de-duplicate UDP port dialers

This create a Comm::UdpOpenDialer class which replaces the ICP, HTCP and
SNMP start-listening dialer classes. Their code was very close to
identical anyway.

ICP and HTCP can now also use the dialer Comm::Connection parameter
instead of assuming that the callback relates to the global incoming
port variable.

13 years agoLanguage: pt_BR updates
Aecio F. [Wed, 28 Mar 2012 18:05:42 +0000 (06:05 +1200)] 
Language: pt_BR updates

13 years agoRegister status 308 permanent redirect
Amos Jeffries [Mon, 26 Mar 2012 21:33:42 +0000 (09:33 +1200)] 
Register status 308 permanent redirect

13 years agoBug 3193: NTLM decoder truncating strings
Amos Jeffries [Fri, 23 Mar 2012 07:14:21 +0000 (01:14 -0600)] 
Bug 3193: NTLM decoder truncating strings

* Also ntlm_unpack_auth using reversed arguments for memcpy()
* Also improved packet structure debug display

13 years agoTypo in sourcemaintenance.sh
Amos Jeffries [Mon, 19 Mar 2012 04:39:36 +0000 (22:39 -0600)] 
Typo in sourcemaintenance.sh

13 years agoSourceFormat Enforcement
Automatic source maintenance [Mon, 19 Mar 2012 00:19:24 +0000 (18:19 -0600)] 
SourceFormat Enforcement

13 years agoMaintenance: ensure stub_* files are always bundled
Amos Jeffries [Sun, 18 Mar 2012 01:41:17 +0000 (13:41 +1200)] 
Maintenance: ensure stub_* files are always bundled

Relying on dependency chains does not always work for stubs.
Builds automake list of files to bundle and add to EXTRA_DIST for
bundling.

13 years agoLanguage: pt_BR updates
Aecio F. [Fri, 16 Mar 2012 17:05:48 +0000 (06:05 +1300)] 
Language: pt_BR updates

13 years agoLanguage: pt_BR updates
Aecio F. [Fri, 16 Mar 2012 11:06:22 +0000 (00:06 +1300)] 
Language: pt_BR updates

13 years agoSolaris: definitions of AF_LOCAL and strsep()
Jose-Marcio Martins da Cruz [Fri, 16 Mar 2012 00:40:32 +0000 (18:40 -0600)] 
Solaris: definitions of AF_LOCAL and strsep()

13 years agoDist the Solaris krb5 patch
Amos Jeffries [Thu, 15 Mar 2012 13:46:10 +0000 (07:46 -0600)] 
Dist the Solaris krb5 patch

13 years agoPortability: define SUN_LEN() for Solaris
Alexander Lukyanov [Thu, 15 Mar 2012 12:36:35 +0000 (06:36 -0600)] 
Portability: define SUN_LEN() for Solaris

13 years agoLanguage: pt_BR updates
Fred [Fri, 9 Mar 2012 05:06:45 +0000 (18:06 +1300)] 
Language: pt_BR updates

13 years agoWindows: use Comm::Connection ICP sockets
Amos Jeffries [Fri, 9 Mar 2012 02:09:33 +0000 (19:09 -0700)] 
Windows: use Comm::Connection ICP sockets

13 years agoWindows: Use FD_ISSET() wrapper instead of __WSAFDIsSet()
Amos Jeffries [Fri, 9 Mar 2012 01:45:05 +0000 (18:45 -0700)] 
Windows: Use FD_ISSET() wrapper instead of __WSAFDIsSet()

This moves the Win32-specific select() module a lot closer to the
non-Windows select() module.

13 years agossl_crtd: undefined references to squid_curtime
Alex Rousskov [Thu, 8 Mar 2012 13:03:19 +0000 (06:03 -0700)] 
ssl_crtd: undefined references to squid_curtime

13 years agoBug 3439: correct external_acl_type documented default for ipv4/ipv6 option
Amos Jeffries [Thu, 8 Mar 2012 04:23:06 +0000 (21:23 -0700)] 
Bug 3439: correct external_acl_type documented default for ipv4/ipv6 option

13 years agoSourceFormat Enforcement
Automatic source maintenance [Thu, 8 Mar 2012 01:41:08 +0000 (18:41 -0700)] 
SourceFormat Enforcement

13 years agoBug 3397: do not mark connection as opened until after SYN-ACK
Amos Jeffries [Wed, 7 Mar 2012 22:54:00 +0000 (15:54 -0700)] 
Bug 3397: do not mark connection as opened until after SYN-ACK

assertion failed: comm.cc:1117: "isOpen(fd)" on FwdState destruct with
half-connected server. When the SYN was sent but ACK not yet received.

13 years agoBug 3509: kQueue compile error
Warren Baker [Wed, 7 Mar 2012 12:37:54 +0000 (05:37 -0700)] 
Bug 3509: kQueue compile error

13 years agoLanguage: pt_BR updates
Fred [Wed, 7 Mar 2012 05:07:40 +0000 (18:07 +1300)] 
Language: pt_BR updates

13 years agoBug 3458: Icon Serving (squid-internal-static) Broken
Alex Rousskov [Wed, 7 Mar 2012 02:32:24 +0000 (19:32 -0700)] 
Bug 3458: Icon Serving (squid-internal-static) Broken

13 years agoPrep for 3.2.0.16
Amos Jeffries [Wed, 7 Mar 2012 02:03:16 +0000 (19:03 -0700)] 
Prep for 3.2.0.16

13 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 7 Mar 2012 01:32:25 +0000 (18:32 -0700)] 
SourceFormat Enforcement

13 years agoBug 3420: Request body consumption races and theConsumer
Alex Rousskov [Wed, 7 Mar 2012 00:26:34 +0000 (17:26 -0700)] 
Bug 3420: Request body consumption races and theConsumer

13 years agoCorrect DNS timeout handling.
Henrik Nordstrom [Mon, 5 Mar 2012 11:59:54 +0000 (12:59 +0100)] 
Correct DNS timeout handling.

The change to concurrent A & AAAA lookups did not handle timeouts
properly, resulting in segmentation faults.

The timeouts as such were also mismanaged, resulting in much longer
DNS timeouts than intended.

This also cleans up the API somewhat to use const for the result.

13 years agoDocument master/slave DNS query relation and search path processing
Henrik Nordstrom [Mon, 5 Mar 2012 11:36:38 +0000 (12:36 +0100)] 
Document master/slave DNS query relation and search path processing

13 years agoLanguage: fr updates
Bernard [Sun, 4 Mar 2012 23:12:44 +0000 (12:12 +1300)] 
Language: fr updates

13 years agoCorrect DNS timeout handling.
Henrik Nordstrom [Sun, 4 Mar 2012 22:24:58 +0000 (23:24 +0100)] 
Correct DNS timeout handling.

The change to concurrent A & AAAA lookups did not handle timeouts
properly, resulting in segmentation faults.

The timeouts as such were also mismanaged, resulting in much longer
DNS timeouts than intended.

This also cleans up the API somewhat to use const for the result.

13 years agoBreak out assignment from if clause to make code more readable (and gcc happier)
Henrik Nordstrom [Sun, 4 Mar 2012 18:50:13 +0000 (19:50 +0100)] 
Break out assignment from if clause to make code more readable (and gcc happier)

13 years agoLanguage: fr updates
Bernard [Sun, 4 Mar 2012 17:06:08 +0000 (06:06 +1300)] 
Language: fr updates

13 years agoBug 3457: Display TLS error details in ERR_SECURE_CONNECT_FAIL
Amos Jeffries [Sun, 4 Mar 2012 06:56:44 +0000 (23:56 -0700)] 
Bug 3457: Display TLS error details in ERR_SECURE_CONNECT_FAIL

13 years agoBug 3503: DNS PTR queries timeout due to wrong QIDs.
Alex Rousskov [Fri, 2 Mar 2012 17:33:04 +0000 (10:33 -0700)] 
Bug 3503: DNS PTR queries timeout due to wrong QIDs.

Supply query ID (rather than zero) to rfc3596BuildPTRQuery*() calls.

This code was broken since trunk r11015 "Fixed DNS query leaks and increased
defense against DNS cache poisoning" dated 2010-11-03.

13 years agoPolish parse_address bracketing
Amos Jeffries [Fri, 2 Mar 2012 03:20:08 +0000 (20:20 -0700)] 
Polish parse_address bracketing

13 years agoRegression: snmp/udp address directives not resolving hostname
Amos Jeffries [Fri, 2 Mar 2012 02:02:45 +0000 (19:02 -0700)] 
Regression: snmp/udp address directives not resolving hostname

13 years agoBetter helper-to-Squid buffer size management.
Alex Rousskov [Wed, 29 Feb 2012 06:32:14 +0000 (23:32 -0700)] 
Better helper-to-Squid buffer size management.

The minimum buffer size is reduced from 8KB to 4KB after a squid-dev
discussion to prevent wasting of "several hundred KB of unused permanent
memory on some installations".

We now increase the buffer if we cannot parse the helper response message.

The maximum buffer size is now 32KB. This should be enough for all known
helper responses.

We now warn if the read buffer reaches its capacity and kill the offending
helper explicitly. An increase in maximum buffer capacity to 32KB should make
such events rare.

Motivation: ssl_crtd helper may produce responses exceeding 9907 bytes in size
(and possibly much larger if multiple chained certificates need to be returned
to Squid). The old helper.cc code would fill the read buffer completely,
schedule a read for zero bytes, receive zero bytes, declare an EOF condition,
and close the stream (which kills ssl_crtd).  Due to insufficient information
logged, the observable symptoms were pretty much the same as if ssl_crtd
closed the stream first, indicating a ssl_crtd bug.

13 years agoLanguage: hu updates
Gergely [Tue, 28 Feb 2012 23:12:47 +0000 (12:12 +1300)] 
Language: hu updates

13 years agoBug 3502: client timeout uses server-side read_timeout, not request_timeout
HONDA Hirofumi [Tue, 28 Feb 2012 17:52:21 +0000 (10:52 -0700)] 
Bug 3502: client timeout uses server-side read_timeout, not request_timeout

I have also adjusted request_timeout description in squid.conf to clarify that
request_timeout applies to receiving complete HTTP request headers and not
just the first header byte. We reset the connection timeout to
clientLifetimeTimeout after parsing request headers.

https_port was correctly using Config.Timeout.request already.

13 years agoLanguage: hu updates
Gergely [Tue, 28 Feb 2012 11:06:07 +0000 (00:06 +1300)] 
Language: hu updates

13 years agoMade idnsSendSlaveAAAAQuery() debug label differ from that of idnsALookup().
Alex Rousskov [Tue, 28 Feb 2012 01:34:35 +0000 (18:34 -0700)] 
Made idnsSendSlaveAAAAQuery() debug label differ from that of idnsALookup().

13 years agoBug 3497: Bad ssl_crtd db size file causes infinite loop.
Guy Helmer [Tue, 28 Feb 2012 00:22:38 +0000 (17:22 -0700)] 
Bug 3497: Bad ssl_crtd db size file causes infinite loop.

The db size file may become empty when Squid runs out of disk space. Ignoring
db size reading errors led to bogus db sizes used as looping condition. This
fix honors reading errors and also terminates the loop when no more
certificates can be removed. Both errors and removal failure are fatal to
ssl_crtd.

A positive side-effect of this fix is one less call to the relatively
expensive file-reading size()/readSize() methods under normal conditions.

I also removed "minimum db size" check because it did not seem to be in sync
with other ssl_crtd parameters such as fs block size and because its overall
purpose was unclear. The check was also removed by the original bug reporter.

TODO: Remaining problems include: ssl_crtd should not exit just because it
cannot write something to disk. A proper reporting/debugging API is missing.

13 years agoLog '-' on requests with no Referer or User-Agent headers
Amos Jeffries [Mon, 27 Feb 2012 10:03:03 +0000 (03:03 -0700)] 
Log '-' on requests with no Referer or User-Agent headers

This data is actually meaningful for the analysis of client behaviour.

squid-dev have agreed that it is worth removing the old log behaviour of
omitting these entries.

13 years agoBug 3490: Crash writing Apache Common logs
Amos Jeffries [Mon, 27 Feb 2012 09:57:02 +0000 (02:57 -0700)] 
Bug 3490: Crash writing Apache Common logs

13 years agoLanguage: hu updates
Gergely [Sun, 26 Feb 2012 11:05:56 +0000 (00:05 +1300)] 
Language: hu updates

13 years agoLanguage: hu updates
Gergely [Sun, 26 Feb 2012 05:05:39 +0000 (18:05 +1300)] 
Language: hu updates

13 years agoLanguage: hu updates
Gergely [Sat, 25 Feb 2012 23:06:00 +0000 (12:06 +1300)] 
Language: hu updates

13 years agoLanguage: hu updates
Gergely [Sat, 25 Feb 2012 17:05:50 +0000 (06:05 +1300)] 
Language: hu updates

13 years agoLanguage: en updates
Amos [Fri, 24 Feb 2012 17:06:43 +0000 (06:06 +1300)] 
Language: en updates

13 years agoLanguage: en updates
Amos [Fri, 24 Feb 2012 17:05:43 +0000 (06:05 +1300)] 
Language: en updates

13 years agoLanguage: fr updates
Bernard [Thu, 23 Feb 2012 23:06:10 +0000 (12:06 +1300)] 
Language: fr updates

13 years agoFix IPv6 site-local IP detection
Amos Jeffries [Tue, 21 Feb 2012 09:59:51 +0000 (22:59 +1300)] 
Fix IPv6 site-local IP detection

RFC 4193 the site-local allocated range is fc00::/7.

Squid has been using IN6_IS_ADDR_SITELOCAL() but it turns out Linux and
OpenBSD at least still define that to test for the long obsolete fec0::/10.

13 years agoSourceFormat Enforcement
Automatic source maintenance [Tue, 21 Feb 2012 02:00:15 +0000 (19:00 -0700)] 
SourceFormat Enforcement

13 years agoRetry requests that failed due to a persistent connection race
Alex Rousskov [Mon, 20 Feb 2012 19:10:54 +0000 (12:10 -0700)] 
Retry requests that failed due to a persistent connection race
instead of replying with ERR_ZERO_SIZE_OBJECT "Bad Gateway".

The ERR_ZERO_SIZE_OBJECT errors were visible to the client when the
destination had only one address because serverDestinations.shift()
made the list of destination empty and startConnectionOrFail() failed.

When FwdState starts to use a pinned connection, the connection is treated as
an idle persistent connection as far as race detection is concerned.
Currently, pinned connections cannot be reopened, repinned, and retried after
a pconn race. This will change when server-side bumped connections become
pinned.

It felt wrong that a failed serverConn may remain set while we are opening a
new connection so I set it to NULL after a squid-dev discussion indicating
that doing so should be safe.

We also now reset the local port number to zero in case it was set to the
actual source port by ConnOpener or other code working with the previous
connection to the same serverDestinations[0] address, although simple tests
worked (and showed changing source port) without this reset.

13 years agoBug fix: sslpassword_program for ssl-bump http ports
Christos Tsantilas [Mon, 20 Feb 2012 18:07:29 +0000 (20:07 +0200)] 
Bug fix: sslpassword_program for ssl-bump http ports

Currently the sslpassword_program configuration parameter does not work
for encrypted certificate keys on ssl-bump enabled http ports, and user
always asked to give the SSL key password.

This patch fixes this problem.

This is a Measurement Factory project.

13 years agoBug 3490: Crash writing Referer/Username logs
Amos Jeffries [Mon, 20 Feb 2012 08:56:41 +0000 (01:56 -0700)] 
Bug 3490: Crash writing Referer/Username logs

13 years agoRFC 2518 obsoleted by RFC 4918
Amos Jeffries [Sat, 18 Feb 2012 02:03:38 +0000 (19:03 -0700)] 
RFC 2518 obsoleted by RFC 4918

13 years agoSupport CoAP-over-HTTP
Amos Jeffries [Fri, 17 Feb 2012 09:01:51 +0000 (02:01 -0700)] 
Support CoAP-over-HTTP

Make Squid happy with HTTP requests using coap:// and coaps:// URI.

No gateway or other interaction with CoAP is enabled by this patch.

13 years agoBug 3324: loadFromFile: parse error while reading template file
Alex Rousskov [Thu, 16 Feb 2012 04:23:15 +0000 (21:23 -0700)] 
Bug 3324: loadFromFile: parse error while reading template file

Do not store and later use a pointer to a temporary String buffer.
HttpHeader::getByName() returns a temporary String.

13 years agoTranslation: add basic_getpwnam_auth manual
Amos Jeffries [Tue, 14 Feb 2012 05:26:50 +0000 (18:26 +1300)] 
Translation: add basic_getpwnam_auth manual

13 years agoDrop redundant fde.h include
Amos Jeffries [Tue, 14 Feb 2012 05:20:16 +0000 (18:20 +1300)] 
Drop redundant fde.h include

13 years agoFix CommIO missing includes
Amos Jeffries [Sun, 12 Feb 2012 13:15:51 +0000 (06:15 -0700)] 
Fix CommIO missing includes

13 years agoDrop old keep-alive hack for Netscape
Amos Jeffries [Fri, 10 Feb 2012 03:30:02 +0000 (20:30 -0700)] 
Drop old keep-alive hack for Netscape

13 years agoDo not cache partially loaded entries in shared mem cache (and then serve them)
Alex Rousskov [Fri, 10 Feb 2012 00:32:44 +0000 (17:32 -0700)] 
Do not cache partially loaded entries in shared mem cache (and then serve them)

When handling a conditional request, Squid may load the beginning of a cached
object from disk, realize that the client has the same fresh copy, and respond
with 304 Not Modified. After that, Squid was checking whether the partially
loaded object should be kept in shared memory cache (if enabled). There were
no checks preventing memory caching of the partially loaded object.

Later, partially cached objects were served to clients, resulting in truncated
responses. I believe this happens because shared memory cache does not keep
all the StoreEntry data (just like a disk cache does not do that) so the fact
that only a part of the object was available was lost.

13 years agoDo not swap out swapped out objects.
Alex Rousskov [Fri, 10 Feb 2012 00:01:17 +0000 (17:01 -0700)] 
Do not swap out swapped out objects.

I noticed that sometimes Squid would start swapping out an entry that was
recently loaded from disk and was still on disk. That wastes disk
resources (at best).

The old StoreEntry::mayStartSwapOut() code assumed that when swap_status is
not SWAPOUT_NONE it is SWAPOUT_WRITING, but SWAPOUT_WRITING is impossible
after recent StoreEntry::swapOut() modifications because mayStartSwapOut() is
only called when we are not swappingOut() already. SWAPOUT_DONE is possible.

13 years agoDrop dead code in reply parsing
Amos Jeffries [Thu, 9 Feb 2012 13:27:51 +0000 (06:27 -0700)] 
Drop dead code in reply parsing

This code has not been used/needed in some time. It can die.

It is also no clear why it existed in the first place. The RFC is not
mentioned by number and RFC 2068/2616 only talk about tolerance for
whitespace before request lines, not replies.

13 years agoBug 3490: part 1: SegFault opening FTP active data connections
Amos Jeffries [Wed, 8 Feb 2012 22:55:23 +0000 (11:55 +1300)] 
Bug 3490: part 1: SegFault opening FTP active data connections

13 years agoLanguage: zh_TW updates
Anonymous Pootle User [Mon, 6 Feb 2012 17:13:38 +0000 (06:13 +1300)] 
Language: zh_TW updates