]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
13 years agoBug 2519: ssl_bump + Authentication (LDAP Digest) issues
Christos Tsantilas [Thu, 15 Dec 2011 11:56:37 +0000 (13:56 +0200)] 
Bug 2519: ssl_bump + Authentication (LDAP Digest) issues

When the ssl_bump and authentication iare both enabled for an ssl-bumped port
all SSL enabled websites prompt the user for authentication information once
per FQDN.

Tis patch inherits the authentication info from the CONNECT request to the
sslbumped requests.

13 years agoBug 3448: 204 response problem in adaptation chains
Christos Tsantilas [Wed, 14 Dec 2011 14:41:49 +0000 (16:41 +0200)] 
Bug 3448: 204 response problem in adaptation chains

When the first ICAP service in a chain respond with 204 the next service
is aborted on Must(old_request->canonical) expression inside Adaptation::Icap::ModXact::encapsulateHead method.

Squid ICAP try to set the request::canonical member of the adapted request
inside Adaptation::Icap::ModXact::prepEchoing when the 204 response received.
The adapted.header->parse(..) call some lines after will set canonical member
to NULL.
This patch call the urlCanonical() function after parse() method
to build canonical member for the adapted request, instead of trying to copy
this member from the original request.

13 years agoPrep for 3.2.0.14
Amos Jeffries [Mon, 12 Dec 2011 09:51:08 +0000 (02:51 -0700)] 
Prep for 3.2.0.14

13 years agoSourceFormat Enforcement
Automatic source maintenance [Fri, 9 Dec 2011 01:17:27 +0000 (18:17 -0700)] 
SourceFormat Enforcement

13 years agoMemBufs don't need explicit cleanup anymore in HttpBody
Francesco Chemolli [Thu, 8 Dec 2011 22:07:47 +0000 (23:07 +0100)] 
MemBufs don't need explicit cleanup anymore in HttpBody

13 years agoRemoved dead HttpHeaderExtField code.
Francesco Chemolli [Thu, 8 Dec 2011 21:58:09 +0000 (22:58 +0100)] 
Removed dead HttpHeaderExtField code.

13 years agoSourceFormat Enforcement
Automatic source maintenance [Thu, 8 Dec 2011 01:22:28 +0000 (18:22 -0700)] 
SourceFormat Enforcement

13 years agoStandardize data field name in FileMap.
Francesco Chemolli [Wed, 7 Dec 2011 19:17:20 +0000 (20:17 +0100)] 
Standardize data field name in FileMap.

13 years agoC++-refactor FileMap
Francesco Chemolli [Wed, 7 Dec 2011 18:56:59 +0000 (19:56 +0100)] 
C++-refactor FileMap

13 years agoPolish: correct debug text about ACL 'AND' list match state
Amos Jeffries [Wed, 7 Dec 2011 11:46:49 +0000 (04:46 -0700)] 
Polish: correct debug text about ACL 'AND' list match state

13 years agoDocs: mention ssl_crtd DB needs clearing after CA changes.
Amos Jeffries [Tue, 6 Dec 2011 22:44:26 +0000 (11:44 +1300)] 
Docs: mention ssl_crtd DB needs clearing after CA changes.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Christos Tsantilas [Tue, 6 Dec 2011 14:06:38 +0000 (16:06 +0200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 3420: Request body consumption races and !theConsumer exception.

Also fixes endless waiting for HTTP client to send req body we no longer need.

Before these changes, the client side used a single "closing" state to
handle two different error conditions:

  1. We stopped receiving request body because of some error.
  2. We stopped sending response because of some error.

When a "directional" error occurred, we try to keep the transaction going in
the other direction (e.g., to give ICAP the entire request or to give HTTP
client the entire response). However, because there was just one "closing"
state, the code failed to correctly detect or process many corner cases,
resulting in stuck transactions and !theConsumer assertions/exceptions due to
races between enableAutoConsumption() and expectNoConsumption() calls.

This patch replaces the "closing" state with two direction-specific "we
stopped sending/receiving" flags.

Now, when the response sending code is done, it now checks whether the
receiving code stopped and closes the connection as needed. This is done both
when we encounter a sending error (ClientSocketContext::initiateClose) and
when we successfully sent the entire response to the client
(ClientSocketContext::keepaliveNextRequest).

Similarly, when the request body reading code is done, it now checks whether
the receiving code stopped and closes the connection as needed. This is done
both when we encounter a receiving error
(ConnStateData::noteBodyConsumerAborted) and when we successfully receive the
entire request body from the client (ClientSocketContext::writeComplete).

TODO: This patch focuses on various error cases. We might still have problems
when there is an early HTTP response and no errors of any kind. I marked the
corresponding old code with an XXX.

13 years agoSourceFormat Enforcement
Automatic source maintenance [Mon, 5 Dec 2011 01:40:45 +0000 (18:40 -0700)] 
SourceFormat Enforcement

13 years agoc++-refactor HttpBody
Francesco Chemolli [Sun, 4 Dec 2011 13:52:07 +0000 (14:52 +0100)] 
c++-refactor HttpBody

13 years agoFix assertion failed: external_acl.cc:908: ch->auth_user_request != NULL
Amos Jeffries [Sun, 4 Dec 2011 06:44:05 +0000 (23:44 -0700)] 
Fix assertion failed: external_acl.cc:908: ch->auth_user_request != NULL

External ACL sometimes cannot find the credentials in ACL Checklist even
if they are attached to the HTTPRequest object.

This seems to happen when the checklist is created and the line match
started before the credentials are known. The credentials validation
updates the HTTP request state but is not aware of ACL checklists needing
to be updated so it never happens.

This patch:
* locate the %LOGIN value from either place where credentials can be found,
* updates the checklist if it was unset,
* passes '-' to the helper if no credentials at all were given.

Although the earlier logics forcing a lookup means this '-' case should
not happen it might if the external ACL were processed in 'fast' check.

13 years agoAdd FdeCbParams parameter object to CommCalls API.
Amos Jeffries [Sun, 4 Dec 2011 05:43:42 +0000 (22:43 -0700)] 
Add FdeCbParams parameter object to CommCalls API.

The problem:
  CommCalls API functionality is conflated with comm operational calls
created to do general FD handling (FD as pipe handle, FD as disk handle,
FD as pointer into the fd_table structure). Sometimes because they do
operations mirroring comm handlers and also use FD.  None of this actually
requires the CommCalls layer to be involved though. The Comm::Connection
objects which CommCall TCP handlers pass around is also very inappropriate
for these FD types.

This adds FdeCbParams to CommCalls infrastructure, for use internally and
"lower" than comm API to pass around raw FD values. This should be avoided
on TCP socket FD, but may be used by callers needing FD where
Comm::Connection is inappropriate.

13 years agoCBDATA call Dialer template
Amos Jeffries [Sun, 4 Dec 2011 05:39:39 +0000 (22:39 -0700)] 
CBDATA call Dialer template

This adds a template for dialing Unary CBDATA wrapper functions with
type safety. Avoiding the casting that currently occurs in wrappers and
allowing the AsyncCall APIs to be used for these callbacks.

13 years agoSourceFormat Enforcement
Automatic source maintenance [Sun, 4 Dec 2011 01:33:38 +0000 (18:33 -0700)] 
SourceFormat Enforcement

13 years agoFix arguments to swaplog renaming calls
kinkie@squid-cache.org [Sat, 3 Dec 2011 17:05:32 +0000 (18:05 +0100)] 
Fix arguments to swaplog renaming calls

13 years agoPolish debug messages on swap.state rename failure
Amos Jeffries [Sat, 3 Dec 2011 14:47:51 +0000 (07:47 -0700)] 
Polish debug messages on swap.state rename failure

13 years agoAdded missing compat files.
Francesco Chemolli [Sat, 3 Dec 2011 12:52:56 +0000 (13:52 +0100)] 
Added missing compat files.

13 years agoMerge: Surrogate-Control c++ refactoring.
Francesco Chemolli [Sat, 3 Dec 2011 12:40:23 +0000 (13:40 +0100)] 
Merge: Surrogate-Control c++ refactoring.

13 years agoRemoved last traces remaining of -fhuge-objects compile flag
Francesco Chemolli [Sat, 3 Dec 2011 10:55:45 +0000 (11:55 +0100)] 
Removed last traces remaining of -fhuge-objects compile flag

13 years agoPrep for 3.1.18
Amos Jeffries [Sat, 3 Dec 2011 05:59:30 +0000 (22:59 -0700)] 
Prep for 3.1.18

13 years agoPrep for 3.1.17
Amos Jeffries [Fri, 2 Dec 2011 13:53:54 +0000 (06:53 -0700)] 
Prep for 3.1.17

13 years agoRe-aligned HttpHeader.cc and HttpHeader.h headers catalogue.
Francesco Chemolli [Fri, 2 Dec 2011 11:20:58 +0000 (12:20 +0100)] 
Re-aligned HttpHeader.cc and HttpHeader.h headers catalogue.

13 years agoRemoved useless typedefs.
Francesco Chemolli [Fri, 2 Dec 2011 06:21:08 +0000 (07:21 +0100)] 
Removed useless typedefs.

13 years agoRemoved now useless -fhuge-objects GCC compiler flag
Francesco Chemolli [Fri, 2 Dec 2011 06:20:42 +0000 (07:20 +0100)] 
Removed now useless -fhuge-objects GCC compiler flag

13 years agoDocument registered HTTP headers with why they are registered
Amos Jeffries [Fri, 2 Dec 2011 05:48:28 +0000 (22:48 -0700)] 
Document registered HTTP headers with why they are registered

13 years agoBug 3422: Buffer overflow in recv-announce
Jan Klemkow [Thu, 1 Dec 2011 13:16:08 +0000 (02:16 +1300)] 
Bug 3422: Buffer overflow in recv-announce

13 years agoRemoved useless typedefs.
Francesco Chemolli [Thu, 1 Dec 2011 06:36:36 +0000 (07:36 +0100)] 
Removed useless typedefs.

ConnCloseHelperData, DynPool, Meta_data and body_size typedefs
are unused and meaningless.

13 years agoRemoved now useless -fhuge-objects GCC compiler flag and related autoconf checks.
Francesco Chemolli [Thu, 1 Dec 2011 06:31:39 +0000 (07:31 +0100)] 
Removed now useless -fhuge-objects GCC compiler flag and related autoconf checks.

13 years agoBug 3428: Active FTP data channel accepted twice
Michael Weiser [Mon, 28 Nov 2011 02:22:22 +0000 (19:22 -0700)] 
Bug 3428: Active FTP data channel accepted twice

13 years agoBug 3433: Segfault closing SNMP
Amos Jeffries [Mon, 28 Nov 2011 01:44:09 +0000 (18:44 -0700)] 
Bug 3433: Segfault closing SNMP

13 years agoBug 3301: ERR_DNS_FAIL never shown
Amos Jeffries [Mon, 28 Nov 2011 01:39:47 +0000 (18:39 -0700)] 
Bug 3301: ERR_DNS_FAIL never shown

13 years agoBug 3432: Crash logging FTP errors
yabuki [Sun, 27 Nov 2011 21:34:50 +0000 (14:34 -0700)] 
Bug 3432: Crash logging FTP errors

13 years agoSourceLayout: ErrorState constructor/destructor
Amos Jeffries [Sun, 27 Nov 2011 12:37:35 +0000 (01:37 +1300)] 
SourceLayout: ErrorState constructor/destructor

13 years agoDocs: config file and release notes polish
Amos Jeffries [Sun, 27 Nov 2011 10:59:41 +0000 (23:59 +1300)] 
Docs: config file and release notes polish

13 years agolibxml2 is an optional component
Amos Jeffries [Sun, 27 Nov 2011 10:16:11 +0000 (23:16 +1300)] 
libxml2 is an optional component

Do not block the build if it is missing during auto-detect.

13 years agoBug 3301: Update CONNECT_FAIL message to mention DNS and connectivity issues
Amos Jeffries [Sun, 27 Nov 2011 07:07:25 +0000 (20:07 +1300)] 
Bug 3301: Update CONNECT_FAIL message to mention DNS and connectivity issues

13 years agoBug 3430: Document SSL EDH cipher configuration issues
Amos Jeffries [Sun, 27 Nov 2011 04:24:49 +0000 (17:24 +1300)] 
Bug 3430: Document SSL EDH cipher configuration issues

13 years agoCorrect libxml2 include path search when using a configure cache
Henrik Nordstrom [Sun, 27 Nov 2011 01:01:07 +0000 (02:01 +0100)] 
Correct libxml2 include path search when using a configure cache

13 years agoWindows: cf_gen requires a .exe extension
Amos Jeffries [Sat, 26 Nov 2011 12:27:23 +0000 (05:27 -0700)] 
Windows: cf_gen requires a .exe extension

13 years agoPortability: fix radix.c include sequence
Amos Jeffries [Sat, 26 Nov 2011 12:24:25 +0000 (05:24 -0700)] 
Portability: fix radix.c include sequence

13 years agoCleanup: remove defined() from compat OS macros
Amos Jeffries [Sat, 26 Nov 2011 12:12:26 +0000 (05:12 -0700)] 
Cleanup: remove defined() from compat OS macros

13 years agoPortability: log_file_daemon compile dependencies
Amos Jeffries [Sat, 26 Nov 2011 11:08:57 +0000 (04:08 -0700)] 
Portability: log_file_daemon compile dependencies

13 years agoWindows: basic_sspi_auth compile dependencies
Amos Jeffries [Sat, 26 Nov 2011 11:04:54 +0000 (04:04 -0700)] 
Windows: basic_sspi_auth compile dependencies

13 years agoWindows: basic_smb_auth compile dependencies
Amos Jeffries [Sat, 26 Nov 2011 11:03:03 +0000 (04:03 -0700)] 
Windows: basic_smb_auth compile dependencies

13 years agoWindows: MinGW is too strict about ANSI when built with std=c++0x
Francesco Chemolli [Sat, 26 Nov 2011 10:37:24 +0000 (03:37 -0700)] 
Windows: MinGW is too strict about ANSI when built with std=c++0x

13 years agoMaintenance: upkeep the snapshot web page Last-Modified headers
Amos Jeffries [Sat, 26 Nov 2011 00:36:56 +0000 (17:36 -0700)] 
Maintenance: upkeep the snapshot web page Last-Modified headers

13 years agoFix segfault in %F error page token
Amos Jeffries [Fri, 25 Nov 2011 11:05:03 +0000 (00:05 +1300)] 
Fix segfault in %F error page token

13 years agoBug 3366: assertion comm.cc:1276: isOpen(fd) via CompositePoolNode::kickReads
Amos Jeffries [Thu, 24 Nov 2011 10:44:38 +0000 (03:44 -0700)] 
Bug 3366: assertion comm.cc:1276: isOpen(fd) via CompositePoolNode::kickReads

Check Deferred read FD is still active before re-scheduling the read.

13 years agoBug fix: HttpRequest::flags.intercepted, HttpRequest::flags.spoof_client_ip neve
Christos Tsantilas [Wed, 23 Nov 2011 17:04:13 +0000 (19:04 +0200)] 
Bug fix: HttpRequest::flags.intercepted, HttpRequest::flags.spoof_client_ip neve
r set

The request_flags::intercepted,request_flags::spoof_client_ip are 1 bit integers
 so when you are try to set to an integer bigger than 1 will overflow and the
results will not be what you are expecting.

13 years agoPolish: convert one SECURITY WARNING to ALERT
Amos Jeffries [Tue, 22 Nov 2011 23:53:50 +0000 (12:53 +1300)] 
Polish: convert one SECURITY WARNING to ALERT

13 years agoCleanup: comm Close handlers
Amos Jeffries [Tue, 22 Nov 2011 12:00:59 +0000 (01:00 +1300)] 
Cleanup: comm Close handlers

Make handlers take the CommCloseCbParams instead of series of expanded
variables.

Opening access to the other CommCommonCbParams fields with Connection/FD
data. Hiding the deprecated FD parameter from most handlers. Which seem
not to have actually needed it in most cases outside Comm.

13 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Christos Tsantilas [Tue, 22 Nov 2011 11:12:32 +0000 (13:12 +0200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 3377: assertion failed: store.cc:885: "store_status == STORE_PENDING"

The StoreEntry::write in the case of an empty write, calls the StoreEntry
handlers. It is possible one of these handlers will change the state of the
store entry or abort it. The next call of the StoreEntry::write will cause
this assertion.

The block of code which calls the StoreSntry handlers in the case of an empty
write, added to allow forward http headers to the client even if no body data
arrived yet (bug 1750). There is not need for this part of code in the latest
squid releases, so it is safe to be removed.

13 years agoAvoid crashes when processing bad X509 common names (CN).
Alex Rousskov [Mon, 21 Nov 2011 16:49:34 +0000 (09:49 -0700)] 
Avoid crashes when processing bad X509 common names (CN).

X509_REQ_get_pubkey() returns a refcounted object that we must clean after use.
X509_REQ_get_subject_name() does not; cleaning the result may cause segfaults.
How we are supposed to tell the difference is beyond me.

13 years agoLanguage: fr updates
Bernard [Sun, 20 Nov 2011 11:20:37 +0000 (00:20 +1300)] 
Language: fr updates

13 years agoCleanup: comm IOACB handlers
Amos Jeffries [Sun, 20 Nov 2011 10:11:13 +0000 (03:11 -0700)] 
Cleanup: comm IOACB handlers

Make handlers take the CommAcceptCbParams instead of series of expanded
variables. Removing listening fd parameter which was not used anyway.

13 years agoSourceFormat Enforcement
Automatic source maintenance [Sun, 20 Nov 2011 02:30:20 +0000 (19:30 -0700)] 
SourceFormat Enforcement

13 years agoTranslations: POT updates
Amos Jeffries [Sat, 19 Nov 2011 23:27:13 +0000 (12:27 +1300)] 
Translations: POT updates

13 years agoLanguage: fr updates
Bernard [Sat, 19 Nov 2011 17:06:31 +0000 (06:06 +1300)] 
Language: fr updates

13 years agoFix for Bug 2619 patch: variable 'consumedPartially' set but not used
Christos Tsantilas [Sat, 19 Nov 2011 09:13:07 +0000 (11:13 +0200)] 
Fix for Bug 2619 patch: variable 'consumedPartially' set but not used

13 years agoCleanup: IsConnOpen checks for NULL
Amos Jeffries [Sat, 19 Nov 2011 00:39:25 +0000 (17:39 -0700)] 
Cleanup: IsConnOpen checks for NULL

13 years agoBug 2619: fix of the test-suite/mem_hdr_test.cc test
Christos Tsantilas [Fri, 18 Nov 2011 19:44:05 +0000 (21:44 +0200)] 
Bug 2619: fix of the test-suite/mem_hdr_test.cc test

Fix for the compile error:
   "call of overloaded â€˜StoreIOBuffer(int, int, NULL)’ is ambiguous"

13 years agoauthor: Martin Huter <mhuter@barracuda.com>, Alex Rousskov <rousskov@measurement...
Christos Tsantilas [Fri, 18 Nov 2011 16:53:45 +0000 (18:53 +0200)] 
author: Martin Huter <mhuter@barracuda.com>, Alex Rousskov <rousskov@measurement-factory.com>, Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2619: Excessive RAM growth due to unlimited adapted body data consumption

If the client does not read from the open connection (i.e. the user does not
confirm the browsers download-message-box in microsofts IE), squid keeps on
reading data from the ICAP server into the store entry, while no more data
can be delivered to the client.
Thus the store entry in memory is growing and squid may - in worst case -
consume memory up to the size of the users download.

This patch add API to StoreEntry to call the producer back when released
memory/space from the StoreEntry and add code to the ICAP client code to not
consume body data comes from the ICAP server when there is not available space
in the store entry.

13 years agoFill access log's %error_detail when responding with
Christos Tsantilas [Fri, 18 Nov 2011 16:40:10 +0000 (18:40 +0200)] 
Fill access log's %error_detail when responding with
ERR_SECURE_CONNECT_FAIL.

This is a Measurement Factory project

13 years agoBug 3423: access violation in URL parser
Jan Klemkow [Fri, 18 Nov 2011 11:31:04 +0000 (00:31 +1300)] 
Bug 3423: access violation in URL parser

13 years agoLog Format token namespace upgrade
Amos Jeffries [Fri, 18 Nov 2011 07:48:25 +0000 (00:48 -0700)] 
Log Format token namespace upgrade

This updates the format parser and storage objects in the Format::
namespace and separates some into separate files.

Add a registration API so components can register themselves an array
of tokens in a namespace. Registering the arbitrary namespace "example"
with some tokens ("a","b") will cause the parser to accept those tokens
in a logging format like so: "%example::a %example::b".

Future work:
 - use runners registry instead of Init() function
 - convert the error pages to use format for the page body macros
 - convert the %ssl_* tokens in src/ssl/* to use format and "ssl::"
 - convert external_acl_type to use formats for its helper input string.

13 years agoUse the right certificate when detailing SSL certificate validation errors.
Mathias Fischer [Thu, 17 Nov 2011 15:31:57 +0000 (08:31 -0700)] 
Use the right certificate when detailing SSL certificate validation errors.

When an _intermediate_ SSL server certificate fails validation, we should
report errors using information in that certificate and not in the top-level
"peer" certificate. Otherwise, our details may make no sense. For example, we
may say that the validation failed due to the expired certificate and then show
an expiration date in the future (because the top-level certificate did not
expire but the intermediate certificate did).

OpenSSL X509_STORE_CTX_get_current_cert() returns the certificate that was
being tested when our certificate validation callback was called.

13 years agoFix Comm::Write closing() assertion when retrying a failed UDP DNS query.
Alex Rousskov [Tue, 15 Nov 2011 18:21:07 +0000 (11:21 -0700)] 
Fix Comm::Write closing() assertion when retrying a failed UDP DNS query.

When we receive a UDP DNS response with a truncation (TC) bit set, we retry
using TCP. Since the retry trigger has nothing to do with the TCP connection,
it is possible that the TCP connection is being closed when we are about to
write to it: A call to our connection close callback has been scheduled but
has not fired yet. We must check for and avoid such race conditions.

13 years agoBug 2910: MemBuf may grow beyond max_capacity
Alex Rousskov [Mon, 14 Nov 2011 06:34:12 +0000 (19:34 +1300)] 
Bug 2910: MemBuf may grow beyond max_capacity

13 years agoBug 3412: External ACL Uses Invalid Cache Entry
Amos Jeffries [Fri, 11 Nov 2011 10:22:02 +0000 (03:22 -0700)] 
Bug 3412: External ACL Uses Invalid Cache Entry

13 years agoLanguage: fr updates
Bernard [Thu, 10 Nov 2011 23:07:22 +0000 (12:07 +1300)] 
Language: fr updates

13 years agoBug 3398: persistent server connection closed after PUT/DELETE
Christos Tsantilas [Thu, 10 Nov 2011 21:49:07 +0000 (10:49 +1300)] 
Bug 3398: persistent server connection closed after PUT/DELETE

13 years agoFix assertion when dstdomain abused in access controls
Amos Jeffries [Thu, 10 Nov 2011 01:35:23 +0000 (14:35 +1300)] 
Fix assertion when dstdomain abused in access controls

This converts an assertion into a logged warning and a failed-match if
dstdomain ACLs are used in places where the HTTP reuqest is not available.

13 years agoLanguage: en updates
Amos [Wed, 9 Nov 2011 23:08:00 +0000 (12:08 +1300)] 
Language: en updates

13 years agoLanguage: en updates
Amos [Wed, 9 Nov 2011 23:06:13 +0000 (12:06 +1300)] 
Language: en updates

13 years agoMaintenance: keep 30 snapshots and detect the new file pattern for removals
Amos Jeffries [Wed, 9 Nov 2011 02:23:14 +0000 (19:23 -0700)] 
Maintenance: keep 30 snapshots and detect the new file pattern for removals

13 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 9 Nov 2011 01:35:19 +0000 (18:35 -0700)] 
SourceFormat Enforcement

13 years agoBug 3408: Wrong header length leads to EFAULTs when cretating UFS swap.log.new.
Matthias Pitzl [Tue, 8 Nov 2011 15:00:17 +0000 (08:00 -0700)] 
Bug 3408: Wrong header length leads to EFAULTs when cretating UFS swap.log.new.

Also localized the header variable as it may be destroyed at any time.

13 years agoDetail SSL handshake failures
Christos Tsantilas [Tue, 8 Nov 2011 13:40:26 +0000 (15:40 +0200)] 
Detail SSL handshake failures

This patch allows Squid to provide details for the %D macro on the secure
connect failed error page when an SSL handshake with the origin server fails.
The default %D text is "Handshake with SSL server failed: XYZ" where XYZ is the
corresponding error string/description returned by OpenSSL if there is any.

This is a Measurement Factory project.

13 years agoDocument and alter the pconn idle timeout directives.
Amos Jeffries [Tue, 8 Nov 2011 10:54:37 +0000 (03:54 -0700)] 
Document and alter the pconn idle timeout directives.

Alters the directive names to clarify what they do and adds some more
description to the config file documentation.

Alters the internal config variables to match the new directive names.

Also alters the well known messages in mgr:filedescriptors report a little
to indicate client/server type and adds a standard "Idle " prefix for
easy automated scanning.

13 years agoDocument and alter the pconn idle timeout directives.
Amos Jeffries [Tue, 8 Nov 2011 09:24:08 +0000 (22:24 +1300)] 
Document and alter the pconn idle timeout directives.

Alters the directive names to clarify what they do and adds some more
description to the config file documentation.

Alters the internal config variables to match the new directive names.

Also alters the well known messages in mgr:filedescriptors report a little
to indicate client/server type and adds a standard "Idle " prefix for
easy automated scanning.

13 years agoTypo in snapshot change
Amos Jeffries [Mon, 7 Nov 2011 10:08:21 +0000 (03:08 -0700)] 
Typo in snapshot change

13 years agoDocs: typo
Amos Jeffries [Mon, 7 Nov 2011 09:57:05 +0000 (02:57 -0700)] 
Docs: typo

13 years agoMaintenance: Reduce snapshot build test cycle to the basic tests
Amos Jeffries [Mon, 7 Nov 2011 09:20:51 +0000 (02:20 -0700)] 
Maintenance: Reduce snapshot build test cycle to the basic tests

13 years agoSupport %% in external ACL format
Amos Jeffries [Sun, 6 Nov 2011 22:52:18 +0000 (11:52 +1300)] 
Support %% in external ACL format

13 years agoAdd a mask on the qos_flows miss configuration value.
Andrew Beverley [Sat, 5 Nov 2011 05:21:11 +0000 (18:21 +1300)] 
Add a mask on the qos_flows miss configuration value.

The reason for this is to allow the preserved mark/TOS value from the
server to be altered slightly rather than overwritten completely.

Example usage. The following will preserve the netfilter mark, but will
ensure that the (9th) bit specified in the miss value will be set to 1
in the preserved mark:

  qos_flows mark miss=0x100/0xF00

13 years agoBug 3367: fix inverted check on host_strict_verify
Amos Jeffries [Fri, 4 Nov 2011 23:28:49 +0000 (12:28 +1300)] 
Bug 3367: fix inverted check on host_strict_verify

13 years agoBug 3299: dnsserver: various undefined references
Amos Jeffries [Fri, 4 Nov 2011 12:30:43 +0000 (01:30 +1300)] 
Bug 3299: dnsserver: various undefined references

13 years agoPortability: add cstdarg as source of var_arg when available
Amos Jeffries [Fri, 4 Nov 2011 07:03:11 +0000 (20:03 +1300)] 
Portability: add cstdarg as source of var_arg when available

13 years agoPolished calculation of the number of needed memory pages for one Store write.
Alex Rousskov [Thu, 3 Nov 2011 21:09:04 +0000 (15:09 -0600)] 
Polished calculation of the number of needed memory pages for one Store write.

The old code was overestimating the number of memory pages required when we
needed to write exactly n*SM_PAGE_SIZE bytes.

13 years agoDocs: correct syntax for UDP/TCP log module parameters
Amos Jeffries [Thu, 3 Nov 2011 11:55:29 +0000 (00:55 +1300)] 
Docs: correct syntax for UDP/TCP log module parameters

13 years agoBug 3364: SNMP Orphans
Amos Jeffries [Thu, 3 Nov 2011 10:02:02 +0000 (23:02 +1300)] 
Bug 3364: SNMP Orphans

13 years agoBug 3406: SSL Log Error in debug
Amos Jeffries [Thu, 3 Nov 2011 09:27:40 +0000 (22:27 +1300)] 
Bug 3406: SSL Log Error in debug

13 years agoLanguage: fr updates
Bernard [Wed, 2 Nov 2011 23:09:23 +0000 (12:09 +1300)] 
Language: fr updates

13 years agoLanguage: fr updates
Bernard [Wed, 2 Nov 2011 23:07:55 +0000 (12:07 +1300)] 
Language: fr updates

13 years agoFixed two more cases of outdated shared memory cache detection
Alex Rousskov [Wed, 2 Nov 2011 21:18:50 +0000 (15:18 -0600)] 
Fixed two more cases of outdated shared memory cache detection
which led to "STORE_DISK_CLIENT == getType()" assertions
when running SMP Squid with non-shared memory caching.

UsingSmp() is not the right condition to detect whether we are using a shared
memory cache because shared memory caching may be disabled and because
Coordinator does not use a shared memory cache even if shared caching is
enabled.

See also: r11821.

13 years agoSource Maintenance: Optimizations and macro fixes
Amos Jeffries [Sun, 30 Oct 2011 02:42:27 +0000 (15:42 +1300)] 
Source Maintenance: Optimizations and macro fixes

* optimize the maintenance script to ony scan for macro problems once

* fix some file macro wrappers not to clash with the OS-macro naming scheme

* fix macro ifdef/ifndef on feature presence macros to use defined() instead