]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
7 years agoBug 4169: HIT marked as MISS when If-None-Match does not match v3.3
Garri Djavadyan [Sat, 17 Dec 2016 10:04:42 +0000 (23:04 +1300)] 
Bug 4169: HIT marked as MISS when If-None-Match does not match

7 years agoBug 3379: Combination of If-Match and a Cache Hit result in TCP Connection Failure
Garri Djavadyan [Sat, 17 Dec 2016 08:34:47 +0000 (21:34 +1300)] 
Bug 3379: Combination of If-Match and a Cache Hit result in TCP Connection Failure

7 years agoBug 3290: authenticate_ttl not working for digest authentication
Garri Djavadyan [Sat, 17 Dec 2016 07:55:25 +0000 (20:55 +1300)] 
Bug 3290: authenticate_ttl not working for digest authentication

7 years agoDo not override user defined -std option
Amos Jeffries [Sat, 17 Dec 2016 07:52:19 +0000 (20:52 +1300)] 
Do not override user defined -std option

8 years agoBug 4515: regression after CVE-2016-4554 patch
Amos Jeffries [Sun, 8 May 2016 12:42:55 +0000 (00:42 +1200)] 
Bug 4515: regression after CVE-2016-4554 patch

8 years agoBug 4455: SegFault from ESIInclude::Start
Amos Jeffries [Fri, 6 May 2016 09:13:21 +0000 (21:13 +1200)] 
Bug 4455: SegFault from ESIInclude::Start

8 years agoRequire exact match in Host header name lookup
Amos Jeffries [Mon, 2 May 2016 03:43:46 +0000 (15:43 +1200)] 
Require exact match in Host header name lookup

8 years agoFix several ESI element construction issues
Amos Jeffries [Wed, 20 Apr 2016 11:16:36 +0000 (23:16 +1200)] 
Fix several ESI element construction issues

* Do not wrap active logic in assert().

* Fix localbuf array bounds checking.

* Add Must() conditions to verify array writes will succeed

8 years agonullptr is a C++11 feature
Amos Jeffries [Wed, 20 Apr 2016 10:15:00 +0000 (22:15 +1200)] 
nullptr is a C++11 feature

8 years agocachemgr.cgi: use dynamic MemBuf for internal content generation
Amos Jeffries [Wed, 20 Apr 2016 06:42:59 +0000 (18:42 +1200)] 
cachemgr.cgi: use dynamic MemBuf for internal content generation

Using a fixed size buffer limits how big content lines can be. Modern
HTTP is fast reaching the point where such limits are problematic.
Also fixes incorrect uses of snprintf() by removing them.

8 years agopinger: Fix buffer overflow in Icmp6::Recv
Yuriy M. Kaminskiy [Wed, 30 Mar 2016 14:16:06 +0000 (03:16 +1300)] 
pinger: Fix buffer overflow in Icmp6::Recv

8 years agoBug 3696: crash when client delay pools are activated
Amos Jeffries [Fri, 28 Aug 2015 13:25:15 +0000 (06:25 -0700)] 
Bug 3696: crash when client delay pools are activated

9 years ago3.3.14 SQUID_3_3_14
Amos Jeffries [Fri, 1 May 2015 08:48:53 +0000 (01:48 -0700)] 
3.3.14

9 years agoPrep for 3.3.14, 3.2.14
Amos Jeffries [Fri, 1 May 2015 07:45:22 +0000 (00:45 -0700)] 
Prep for 3.3.14, 3.2.14

9 years agoFix X509 server certificate domain matching
Amos Jeffries [Fri, 1 May 2015 07:21:50 +0000 (00:21 -0700)] 
Fix X509 server certificate domain matching

The X509 certificate domain fields may contain non-ASCII encodings.
Ensure the domain match algorithm is only passed UTF-8 ASCII-compatible
strings.

9 years agoFix 'access_log none' to prevent following logs being used
Amos Jeffries [Fri, 1 May 2015 07:21:07 +0000 (00:21 -0700)] 
Fix 'access_log none' to prevent following logs being used

The documented behaviour of "access_log none" for preventing logging
using log lines following the directive has not been working in
Squid-3 for some time.

Since the 'none' type does not have a log module associated the entire
switch logic where its abort is checked for was being skipped.

9 years agoDocs: Update CONTRIBUTORS
Source Maintenance [Thu, 23 Apr 2015 14:14:05 +0000 (14:14 +0000)] 
Docs: Update CONTRIBUTORS

9 years agoDocumentation updates
Amos Jeffries [Wed, 18 Feb 2015 10:39:59 +0000 (02:39 -0800)] 
Documentation updates

9 years agoDocs: drop obsolete chunked_request_body_max_size references
Amos Jeffries [Sat, 24 Jan 2015 05:19:17 +0000 (21:19 -0800)] 
Docs: drop obsolete chunked_request_body_max_size references

This option has done nothing since Squid-3.2.

9 years agoBug 4093: source-maintenance.sh errors and warnings due to wrong tools/options
Alex Rousskov [Fri, 31 Oct 2014 01:38:14 +0000 (18:38 -0700)] 
Bug 4093: source-maintenance.sh errors and warnings due to wrong tools/options

9 years agoSourceFormat Enforcement
squidadm@squid-cache.org [Wed, 8 Oct 2014 15:31:39 +0000 (15:31 +0000)] 
SourceFormat Enforcement

9 years agoFix various ICMP handling issues in Squid pinger
Amos Jeffries [Mon, 15 Sep 2014 05:07:44 +0000 (23:07 -0600)] 
Fix various ICMP handling issues in Squid pinger

* ICMP code type logging display could over-read the registered type
  string arrays.

* Malformed ICMP packets were accepted into processing with undefined
  and potentially nasty results.

Both sets of flaws can result in pinger segmentation fault and halting
the Squid functionality relying on pinger for correct operation.

 Thanks to the OpenSUSE project for analysis and resolution of these.

9 years agoFix off by one in SNMP subsystem
Sebastian Krahmer [Mon, 15 Sep 2014 04:59:19 +0000 (22:59 -0600)] 
Fix off by one in SNMP subsystem

9 years ago3.3.13 SQUID_3_3_13
Amos Jeffries [Wed, 27 Aug 2014 14:15:53 +0000 (08:15 -0600)] 
3.3.13

9 years agoIgnore Range headers with unidentifiable byte-range values
Amos Jeffries [Wed, 27 Aug 2014 13:50:54 +0000 (07:50 -0600)] 
Ignore Range headers with unidentifiable byte-range values

If squid is unable to determine the byte value for ranges, treat the
header as invalid.

9 years agoFix segfault setting up server SSL connnection
Amos Jeffries [Tue, 20 May 2014 16:43:22 +0000 (09:43 -0700)] 
Fix segfault setting up server SSL connnection

10 years ago3.3.12 SQUID_3_3_12
Amos Jeffries [Sun, 9 Mar 2014 05:24:00 +0000 (22:24 -0700)] 
3.3.12

10 years agoAvoid assertions on Range requests that trigger Squid-generated errors.
Alex Rousskov [Sun, 9 Mar 2014 02:35:19 +0000 (19:35 -0700)] 
Avoid assertions on Range requests that trigger Squid-generated errors.

Added HttpRequest::ignoreRange() to encapsulate range ignoring logic.
Currently the new method only contains the code common among all callers. More
work is needed to check whether further caller homogenization is possible.

Documented that ClientSocketContext::getNextRangeOffset() may sometimes be
called before it is ready to do its job.

10 years agoProtect MemBlob::append() against raw-space writes
Amos Jeffries [Sun, 9 Mar 2014 02:15:24 +0000 (19:15 -0700)] 
Protect MemBlob::append() against raw-space writes

There is no guarantee that the 'unused' area of MemBlob is actually
unused. For example if a read buffer was being filled into the
rawSpace() of a SBuf or MemBlob it will overlap with this empty area
until a read call updates the related size state in MemBlob/SBuf.

For these cases we must use memmove() which guarantees no buffer
corruption will take place on memory overlaps.

10 years agoFix umask default on crash report generated email
Amos Jeffries [Sun, 9 Mar 2014 02:12:14 +0000 (19:12 -0700)] 
Fix umask default on crash report generated email

10 years agoBug 4026: SSL and adaptation_access does not handle aborted connections
Nathan Hoad [Sun, 9 Mar 2014 02:10:07 +0000 (19:10 -0700)] 
Bug 4026: SSL and adaptation_access does not handle aborted connections

10 years agoFix pthread library detection on FreeBSD 10
Amos Jeffries [Sun, 9 Mar 2014 02:07:51 +0000 (19:07 -0700)] 
Fix pthread library detection on FreeBSD 10

We should not be using "cut -b1" anywhere to determine OS version
number. It drops digits out of the major version number.

10 years agoRegression Bug 3769: client_netmask not evaluated since Comm redesign
Amos Jeffries [Thu, 20 Feb 2014 01:27:16 +0000 (18:27 -0700)] 
Regression Bug 3769: client_netmask not evaluated since Comm redesign

10 years agoBug 3969: user credentials cache lookup for Digest authentication broken
Frederic Bourgeois [Thu, 20 Feb 2014 01:20:41 +0000 (18:20 -0700)] 
Bug 3969: user credentials cache lookup for Digest authentication broken

Changes to the username credentials cache were made in Basic auth but
the matching changes were not duplicated to Digest auth. Since the
lookup is identical move it to generic Auth::Config.

Also fixes assertion auth_digest.cc:759:
    "(nonce->user == NULL) || (nonce->user == user)"

10 years agoBug 3806: Caching responses with Vary header
Alex Rousskov [Sun, 15 Dec 2013 05:23:23 +0000 (22:23 -0700)] 
Bug 3806: Caching responses with Vary header

Ported from 3.5 by Martin Sperl

10 years agolibntlmauth: fix Unicode support on Windows
Amos Jeffries [Sun, 1 Dec 2013 06:57:22 +0000 (23:57 -0700)] 
libntlmauth: fix Unicode support on Windows

ntlmauth.h header defines NTLM flags with NTLM_* prefix now.

  This is an iCelero Project

10 years ago3.3.11 SQUID_3_3_11
Amos Jeffries [Sat, 30 Nov 2013 13:54:16 +0000 (06:54 -0700)] 
3.3.11

10 years agoFix more of rev.12660
Amos Jeffries [Sat, 30 Nov 2013 10:14:36 +0000 (03:14 -0700)] 
Fix more of rev.12660

10 years agoProtect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName).
Nathan Hoad [Sat, 30 Nov 2013 09:18:58 +0000 (02:18 -0700)] 
Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName).

Related to Bug 3972 fix

10 years agoBug 3972: Segfault when getting the deny info page ID after a reconfigure
Nathan Hoad [Sat, 30 Nov 2013 09:17:07 +0000 (02:17 -0700)] 
Bug 3972: Segfault when getting the deny info page ID after a reconfigure

Older ACL code was using a stale AclMatchedName value. More recent code resets
the AclMatchedName global to NULL to avoid leaking the stale value, but that
may crash strcmp() in aclGetDenyInfoPage(). Long-term, the global should be
removed, of course.

10 years agoFix mistake in porting rev.12660
Amos Jeffries [Sat, 30 Nov 2013 09:06:57 +0000 (02:06 -0700)] 
Fix mistake in porting rev.12660

10 years agoBug 3782: Digest authentication not obeying nonce_max_count
Frederic Bourgeois [Fri, 29 Nov 2013 04:25:32 +0000 (21:25 -0700)] 
Bug 3782: Digest authentication not obeying nonce_max_count

10 years agoBug 3970: max_filedescriptors disabled due to missing setrlimit
Amos Jeffries [Fri, 29 Nov 2013 04:22:51 +0000 (21:22 -0700)] 
Bug 3970: max_filedescriptors disabled due to missing setrlimit

10 years agoBug 3967: ipc/Kid.cc compilation failure: 'time' was not declared in this scope
Thomas De Schampheleire [Fri, 29 Nov 2013 04:19:00 +0000 (21:19 -0700)] 
Bug 3967: ipc/Kid.cc compilation failure: 'time' was not declared in this scope

Function time() comes from <time.h>, so add the necessary #include.

10 years agoRe-compute Range response content offset after an FTP response was adapted.
Alex Rousskov [Thu, 21 Nov 2013 21:54:29 +0000 (14:54 -0700)] 
Re-compute Range response content offset after an FTP response was adapted.

Moved HTTP-only offset calculation code to the general ServerStateData code so
that [converted-to-HTTP] FTP responses can use it. FTP code computes the range
offset on its own earlier, but we must REcalculate in case the response is
adapted into a response with a different (or no) content range.

10 years agoSource Maintenance: re-add snapshot script to branch
Amos Jeffries [Thu, 21 Nov 2013 21:42:30 +0000 (14:42 -0700)] 
Source Maintenance: re-add snapshot script to branch

10 years agoBug 3960: Dead Peers Are Not Revived
Amos Jeffries [Wed, 20 Nov 2013 00:54:45 +0000 (17:54 -0700)] 
Bug 3960: Dead Peers Are Not Revived

10 years agoWindows: Fix aclocal "is already registered" errors
Amos Jeffries [Wed, 20 Nov 2013 00:12:53 +0000 (17:12 -0700)] 
Windows: Fix aclocal "is already registered" errors

aclocal on Windows cannot handle line-wrapping \ characters and leaves
them present in the output m4 code. in side AC_CONFIG_FILES macro this
results in a mystery file '\\r' being 'registered'.

The list of Makefiles does not even need ths line-wrap indicator as
demonstrated by the tools/Makefile missing its one for some time without
problems.

 This is an iCelero Inc sponsored fix.

10 years agoWindows: Ensure array index is an integer in C code
Amos Jeffries [Wed, 20 Nov 2013 00:11:13 +0000 (17:11 -0700)] 
Windows: Ensure array index is an integer in C code

MSVC compiler does not accept non-integer types for array indexes so we
must cast these CHAR index values to int before use.

 This is an iCelero Inc sponsored fix.

10 years agoBug 3956: xstrndup: tried to dup a NULL pointer
Frederic Bourgeois [Wed, 20 Nov 2013 00:10:16 +0000 (17:10 -0700)] 
Bug 3956: xstrndup: tried to dup a NULL pointer

10 years agoMake HTTP header parser obey relaxed_header_parser
Amos Jeffries [Wed, 20 Nov 2013 00:06:58 +0000 (17:06 -0700)] 
Make HTTP header parser obey relaxed_header_parser

Some unimportant warnings were not obeying the directives silent/loud
setting values.
This abstracts the condition to simplify code and make all the
non-critical warnings depend on the directive for their display level.

10 years agoSourceFormat Enforcement
Automatic source maintenance [Mon, 11 Nov 2013 04:24:58 +0000 (21:24 -0700)] 
SourceFormat Enforcement

10 years agoReplace blocking sleep(3) and close UDS socket on failures.
Alex Rousskov [Sun, 10 Nov 2013 23:02:08 +0000 (16:02 -0700)] 
Replace blocking sleep(3) and close UDS socket on failures.

The two addressed XXX were not causing any known serious bugs on their own,
but the blocking sleep was ugly and possibly in the way of further
kid registration fixes/improvements.

10 years agoBug 3936: error-details.txt parse error
Christos Tsantilas [Sun, 10 Nov 2013 22:59:57 +0000 (15:59 -0700)] 
Bug 3936: error-details.txt parse error

Squid fails parsing error-details.txt template when one or more listed
OpenSSL errors are not supported on running platform.
This patch add a hardcoded list of OpenSSL errors wich can be optional.

This is a Measurement Factory project

10 years agoBug 3906: Filedescriptor leaks in SNMP
Christos Tsantilas [Sun, 10 Nov 2013 22:58:31 +0000 (15:58 -0700)] 
Bug 3906: Filedescriptor leaks in SNMP

Coordinator should not send SNMP client FD to strands when broadcasting SNMP
requests. Strands do not need the descriptor and were forgetting to close it,
causing one FD leak on every SNMP query in SMP mode.

Enhance Ipc::TypedMsgHdr to be able to tell whether the message has a FD.

This is a Measurement Factory project

10 years ago3.3.10 SQUID_3_3_10
Amos Jeffries [Sun, 3 Nov 2013 11:04:06 +0000 (04:04 -0700)] 
3.3.10

10 years agokerberos_ldap_group: fix LDAP string duplication
Markus Moeller [Sun, 3 Nov 2013 08:40:47 +0000 (01:40 -0700)] 
kerberos_ldap_group: fix LDAP string duplication

10 years agoAvoid "hot idle": A series of rapid select() calls with zero timeout.
Alex Rousskov [Sun, 3 Nov 2013 08:37:57 +0000 (01:37 -0700)] 
Avoid "hot idle": A series of rapid select() calls with zero timeout.

Squid uses "infinite" precision when it comes to deciding whether the next
timed event is ready but uses millisecond (1e-3) precision when deciding how
long to wait before the next event will be ready. This inconsistency results
in the EventScheduler engine telling the main loop that it has 0 milliseconds
to poll pending I/O, but when asked again (after the I/O is quickly polled),
the EventScheduler engine often does not schedule the promised event and tells
the main loop to poll for another 0 milliseconds again. This cycling may
happen many times in a row (until enough time is wasted for the next event to
become ready using higher precision).

The fixed code adds a minimum 1ms delay for not-yet-ready events. It also
places both decisions into one method (EventScheduler::timeRemaining), and
tries to polish/document decision logic (which is more complex than it may
seem) because the code has to avoid both inconsistent decisions and hot idle
loops while maintaining the traditional "no event is fired before it is due"
guarantee.

TODO: Idle Squid still runs hotter than it should because the maximum waiting
time is artificially capped outside the event queue to EVENT_LOOP_TIMEOUT=1s.
This causes at most one extra loop iteration per second.

10 years agoBug 3887: tcp_outgoing_tos not working for IPv6
Amos Jeffries [Sun, 3 Nov 2013 08:35:21 +0000 (01:35 -0700)] 
Bug 3887: tcp_outgoing_tos not working for IPv6

10 years agoFix cbdata 'error: expression result unused' errors
Amos Jeffries [Sun, 3 Nov 2013 08:32:24 +0000 (01:32 -0700)] 
Fix cbdata 'error: expression result unused' errors

Detected by Clang.

10 years agoHave testRock use cachemgr stubs
Francesco Chemolli [Thu, 24 Oct 2013 15:45:36 +0000 (09:45 -0600)] 
Have testRock use cachemgr stubs

10 years agoBug 3836: Fix issues with automake 1.13 and later and make check (extra)
Francesco Chemolli [Thu, 24 Oct 2013 15:45:01 +0000 (09:45 -0600)] 
Bug 3836: Fix issues with automake 1.13 and later and make check (extra)

10 years agoBug 3836: Fix issues with automake 1.13 and later and make check
Francesco Chemolli [Thu, 24 Oct 2013 15:39:19 +0000 (09:39 -0600)] 
Bug 3836: Fix issues with automake 1.13 and later and make check

10 years agoAppend Connection:close to OPTIONS requests when icap_persistent_connections is off.
Nathan Hoad [Thu, 24 Oct 2013 15:36:23 +0000 (09:36 -0600)] 
Append Connection:close to OPTIONS requests when icap_persistent_connections is off.

This brings OPTIONS requests behavior inline with REQMOD and RESPMOD.

10 years agoAdd cache_miss_revalidate
Amos Jeffries [Thu, 24 Oct 2013 15:35:08 +0000 (09:35 -0600)] 
Add cache_miss_revalidate

Port of 2.7 ignore_ims_on_miss directive by Henrik Nordstrom.

This on/off switch enables Squid to convert conditional requests from
clients to non-conditional fetches that can fill the cache faster under
cold-start conditions.

10 years agoBug 3480: StoreEntry::kickProducer() segfaults in store_client::copy()
Alex Rousskov [Thu, 24 Oct 2013 15:27:49 +0000 (09:27 -0600)] 
Bug 3480: StoreEntry::kickProducer() segfaults in store_client::copy()
context

Short-term fix: Lock StoreEntry object so that it is not freed by
storeClientCopy2() callbacks. Also lock StoreEntry in storeUnregister()
context because an aborting entry may be deleted there unless it is
double-locked.

See bug 3480 comment #27 for detailed call stack analysis. Additional
cases
include rejected copied HIT due to Var mismatch and hits blocked by
reply_from_cache directive (under development; see bug 3937).

Long-term, we need to make store copying asynchronous and revise
StoreEntry
locking approach.

10 years agoFix CBDATA_CLASS2 macro definition
Amos Jeffries [Thu, 24 Oct 2013 15:26:21 +0000 (09:26 -0600)] 
Fix CBDATA_CLASS2 macro definition

CBDATA_UNKNOWN was being used in place of a void no-op statement.
This was incorrect and useless. Now that the value definition is fixed
it is being picked up by the stricter compilers.
Replace the trinary conditional with an if-statement.

10 years agolibntlmauth: Fix string field truncation
Elmar Vonlanthen [Thu, 24 Oct 2013 15:25:27 +0000 (09:25 -0600)] 
libntlmauth: Fix string field truncation

Count of field bytes must begin at 0. Otherwise the decoder truncates
1 byte from the string due to lstring initial state values.

Also drop the lstring_zero(s) macro. It is only used in one place and
calling it 'zero' obscures that length is non-zero for invalid state.

10 years agontlm_fake_auth: pass DOMAIN data to Squid in original case
Elmar Vonlanthen [Thu, 24 Oct 2013 15:24:01 +0000 (09:24 -0600)] 
ntlm_fake_auth: pass DOMAIN data to Squid in original case

Lower-casing the domain field can cause base ACL match results if the
ACL is checking for case-sensitive or upper-case domain label.

The helper should be emitting the standard UPPER case domain and many
administrators will be expecting that when they write ACLs.

10 years agoFix SQUID_CC_CHECK_ARGUMENT autoconf macro
Francesco Chemolli [Thu, 24 Oct 2013 15:23:14 +0000 (09:23 -0600)] 
Fix SQUID_CC_CHECK_ARGUMENT autoconf macro

10 years agoPolish: better WARNING when workers directive is ignore on reconfigure.
Amos Jeffries [Thu, 3 Oct 2013 11:18:10 +0000 (05:18 -0600)] 
Polish: better WARNING when workers directive is ignore on reconfigure.

Changing the workers directive requires a proxy restart, not just a
reconfigure. State this clearly in the warning message.

10 years agoUse IPv6 localhost nameserver on DNS configuration errors
Amos Jeffries [Thu, 3 Oct 2013 11:17:30 +0000 (05:17 -0600)] 
Use IPv6 localhost nameserver on DNS configuration errors

When DNS configuration fails to locate a set of nameservers "localhost"
is used as the default but has previously only been setting 127.0.0.1
IPv4 address for localhost. This enables the failover to work as
designed on IPv6-only networks.

10 years agoBug 3923: cbdata and undefined behavior due to dynamic runtime enumeration
'noloader' [Sun, 29 Sep 2013 18:13:17 +0000 (12:13 -0600)] 
Bug 3923: cbdata and undefined behavior due to dynamic runtime enumeration

10 years agoPolish: report bytes received when bad content-length detected by quick-abort
Amos Jeffries [Sun, 29 Sep 2013 18:12:26 +0000 (12:12 -0600)] 
Polish: report bytes received when bad content-length detected by quick-abort

10 years agoBug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8
Alex Rousskov [Sun, 29 Sep 2013 17:54:51 +0000 (11:54 -0600)] 
Bug 3918: Squid 3.3.9 Self Test Failures on Mac OS X 10.8

10 years agoBug 3929: request_header_add not working for tunnel requests
libit [Sun, 29 Sep 2013 17:50:16 +0000 (11:50 -0600)] 
Bug 3929: request_header_add not working for tunnel requests

10 years agoFix pinning hierarchy log information
Amos Jeffries [Sun, 29 Sep 2013 17:47:16 +0000 (11:47 -0600)] 
Fix pinning hierarchy log information

10 years agoClose idle client connections associated with closed idle pinned connections.
Alex Rousskov [Sun, 29 Sep 2013 17:28:00 +0000 (11:28 -0600)] 
Close idle client connections associated with closed idle pinned connections.

Squid was not monitoring idle persistent connections pinned to servers. Squid
would discover that the pinned server connection is closed only after
receiving a new request on the idle client connection and trying to write that
request to the server. In such cases, Squid propagates the pinned connection
closure to the client (as it should).

Chrome and, to a lesser extent, Firefox handle such races by opening a new
connection and resending the failed [idempotent] request transparently to the
user. However, IE usually displays an error page to the user.

While some pconn races cannot be avoided, without monitoring idle pconns,
Squid virtually guaranteed such a race in environments where origin server
idle connection timeout is smaller than client/Squid timeouts and users
are revisiting pages in the window between those two timeouts.

Squid now monitors idle pinned connections similar to idle connections in the
pconn pool and closes the corresponding idle client connection to keep the two
sides in sync (to the extent possible).

It is theoretically possible that this change will break servers that send
whitespace on an idle persistent connection or perhaps send some SSL keepalive
traffic. No such cases are known to exist though.

10 years agoRevert r12609 due to compile errors on stable branch
Amos Jeffries [Wed, 11 Sep 2013 01:53:34 +0000 (19:53 -0600)] 
Revert r12609 due to compile errors on stable branch

src/ssl/support.cc:302: error: expected type-specifier
src/ssl/support.cc:302: error: cannot convert 'int*' to 'Ssl::Errors*' in assignment
src/ssl/support.cc:302: error: expected `;'
src/ssl/support.cc:303: error: 'class ACLFilledChecklist' has no member named 'serverCert'
src/ssl/support.cc:312: error: 'class ACLFilledChecklist' has no member named 'serverCert'
src/ssl/support.cc:316: error: 'TheConfig' is not a member of 'Ssl'
src/ssl/support.cc:319: error: 'ssl_ex_index_ssl_cert_chain' was not declared in this scope
src/ssl/support.cc:495: error: a function-definition is not allowed here before '{' token
src/ssl/support.cc:1595: error: expected `}' at end of input

10 years ago3.3.9
Amos Jeffries [Wed, 11 Sep 2013 01:39:13 +0000 (19:39 -0600)] 
3.3.9

10 years agoWindows: locate CMSG definitions in WinSock2.h when present
Amos Jeffries [Wed, 11 Sep 2013 01:12:44 +0000 (19:12 -0600)] 
Windows: locate CMSG definitions in WinSock2.h when present

Windows defines the CMSG macros in WinSock2.h sometimes. This allows the
definitions there to be used when present and avoids compiler errors
about double definitions.

  This is an iCelero project.

10 years agoBug 3849: Duplicate certificate sent when using https_port
Christos Tsantilas [Wed, 11 Sep 2013 01:05:03 +0000 (19:05 -0600)] 
Bug 3849: Duplicate certificate sent when using https_port

The certificate file given with the "cert=" option it may contain a list
of
certificates to be chained to the SSL client, for example intermediate
certificates.

The bug caused because in the certificates  chain we are storing also
the
certificate of the port. This is works well for SSL-bump because squid
generates a certificate which uses the port certificate as CA
certificate.
But in the case of https_port without bumping the port certificate is
sent
twice, one as SSL server certificate and one as chained certificate.

This patch try to chain port certificate only when the sslbump is used.

This is a Measurement Factory project

10 years agoFix myportname ACL on ICAP/eCAP transactions
Amos Jeffries [Wed, 11 Sep 2013 01:03:45 +0000 (19:03 -0600)] 
Fix myportname ACL on ICAP/eCAP transactions

The port name from http_port/https_port was not being propigated to
adapted reqeusts after ICAP/eCAP. Which makes the myportname ACL and
logging of portname not work on adapted requests.

 This is an iCelero Project

10 years agoWindows: document the purpose and use of Squid namespace wrappers
Amos Jeffries [Wed, 11 Sep 2013 01:02:54 +0000 (19:02 -0600)] 
Windows: document the purpose and use of Squid namespace wrappers

Also, add some missing #define's

  This is an iCelero project

10 years agoWindows: fix IPv6 split-stack support
Amos Jeffries [Wed, 11 Sep 2013 01:01:32 +0000 (19:01 -0600)] 
Windows: fix IPv6 split-stack support

Some builds of MinGW do not define IPV6_V6ONLY socket option.

  This is an iCelero project

10 years agoWindows: fix collision between POSIX wrappers and DiskIO class methods
Amos Jeffries [Wed, 11 Sep 2013 01:00:02 +0000 (19:00 -0600)] 
Windows: fix collision between POSIX wrappers and DiskIO class methods

The POSIX function shutdown() is #define'd on Windows. This causes
compiler issues with the DiskIO method of same name. Rename the method
to gracefulShutdown() instead.

Also, Bug 3189 was incomplete and missed a change to DiskThreads
Windows initialization method.

  This is an iCelero project.

10 years agoWindows: fix getopt.c build error with MinGW
Amos Jeffries [Wed, 11 Sep 2013 00:58:53 +0000 (18:58 -0600)] 
Windows: fix getopt.c build error with MinGW

Resolve warning 'initialization discards const qualifieer from pointer'.

  This is an iCelero project.

10 years agoImproved compatibility with clang and icc
Francesco Chemolli [Wed, 11 Sep 2013 00:58:09 +0000 (18:58 -0600)] 
Improved compatibility with clang and icc

10 years agoBug 3895: fix acl_uses_indirect_client and cache_peer_access
David Isaacs [Tue, 10 Sep 2013 11:33:49 +0000 (05:33 -0600)] 
Bug 3895: fix acl_uses_indirect_client and cache_peer_access

10 years agoWindows: Fix ConnOpener::sleep() collision with global macro
Amos Jeffries [Tue, 10 Sep 2013 11:30:13 +0000 (05:30 -0600)] 
Windows: Fix ConnOpener::sleep() collision with global macro

Squid compat library defines sleep() as a wrapper macro which
collides with the member definition in Comm::ConnOpener.

 This is an iCelero project

10 years agoShow number of available filedescriptors when reserved FD changes
Amos Jeffries [Tue, 10 Sep 2013 11:28:59 +0000 (05:28 -0600)] 
Show number of available filedescriptors when reserved FD changes

10 years agoRegression Bug 3077: off-by-one error in Digest header decoding
Jan Sievers [Tue, 10 Sep 2013 11:28:13 +0000 (05:28 -0600)] 
Regression Bug 3077: off-by-one error in Digest header decoding

This is a regression in the 3.2 and later version of the original bug
fix patch.

The effect is that all attributes are treated as quoted-string values
with unescaping performed. This ends with credentials wrongly being
rejected as invalid.

10 years agoRegister Http2-Settings header
Amos Jeffries [Tue, 10 Sep 2013 07:36:28 +0000 (01:36 -0600)] 
Register Http2-Settings header

This header ia a hop-by-hop request-only header and requires stripping
by intermediaries which do not support HTTP/2.0 in Upgrade feature.

We register it now to ensure the stripping occurs even if broken clients
omit it from the Connection header list.

10 years agoFix configure parsing IP/domain directives
Amos Jeffries [Tue, 10 Sep 2013 07:34:29 +0000 (01:34 -0600)] 
Fix configure parsing IP/domain directives

Squid would semi-silently accept invalid IP address or hostname in some
directives which required them (eg wccp_router) and use the magic
IP_ANYADDR value. This change makes configure halt with a FATAL error
instead.

 Detected by Coverity Scan. Issue 1057286.

10 years agoSync with newest OpenSSL error codes
Christos Tsantilas [Tue, 10 Sep 2013 07:31:09 +0000 (01:31 -0600)] 
Sync with newest OpenSSL error codes

This patch updates Squid list of errors to handle the ones available in
newer
OpenSSL versions.

  This is a Measurement Factory project

10 years agoHandle infinite certificate validation loops caused by OpenSSL bug #3090.
Christos Tsantilas [Tue, 10 Sep 2013 07:22:44 +0000 (01:22 -0600)] 
Handle infinite certificate validation loops caused by OpenSSL bug #3090.

If OpenSSL is stuck in a validation loop, Squid breaks the loop and
triggers a
new custom SQUID_X509_V_ERR_INFINITE_VALIDATION SSL validation error.
That
error cannot be bypassed using sslproxy_cert_error because to break the
loop
Squid has to tell OpenSSL that the certificate is invalid, which
terminates
the SSL connection.

Validation loops exceeding SQUID_CERT_VALIDATION_ITERATION_MAX
iterations
are deemed infinite. That macro is defined to be 16384, but that default
can
be overwritten using CPPFLAGS.

  This is a Measurement Factory project

10 years agoWindows: updated test for ws2tcpip.h and windows.h
Amos Jeffries [Mon, 9 Sep 2013 09:29:28 +0000 (03:29 -0600)] 
Windows: updated test for ws2tcpip.h and windows.h

10 years agoWindows: cleanup Squid OS detection macros
Amos Jeffries [Mon, 9 Sep 2013 07:17:19 +0000 (01:17 -0600)] 
Windows: cleanup Squid OS detection macros

* _SQUID_WINDOWS_  for any Windows build specific code
* _SQUID_CYGWIN_   for CygWin Windows build specific code
* _SQUID_MINGW_    for MinGW Windows build specific code

10 years agoWindows: build Windows specific libraries only on Windows.
Amos Jeffries [Mon, 9 Sep 2013 06:30:54 +0000 (00:30 -0600)] 
Windows: build Windows specific libraries only on Windows.

Some libraries are only available on Windows and others are unable to be
built.

10 years agoWindows: fix error: variable 'h_error' set but not used
Amos Jeffries [Mon, 9 Sep 2013 06:09:27 +0000 (00:09 -0600)] 
Windows: fix error: variable 'h_error' set but not used