]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
13 years agoMerged from trunk
Francesco Chemolli [Tue, 13 Dec 2011 10:57:20 +0000 (11:57 +0100)] 
Merged from trunk

13 years agoRefactored statHistIntInit
Francesco Chemolli [Mon, 12 Dec 2011 16:46:49 +0000 (17:46 +0100)] 
Refactored statHistIntInit

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 agoRefactored void statHistLogInit
Francesco Chemolli [Sun, 11 Dec 2011 12:10:22 +0000 (13:10 +0100)] 
Refactored void statHistLogInit
Started refactoring statHistEnumInit

13 years agoStatHist data members are now protected, not private.
Francesco Chemolli [Sat, 10 Dec 2011 22:02:17 +0000 (23:02 +0100)] 
StatHist data members are now protected, not private.
ported some clients from statHistLogInit to StatHist::logInit

13 years agoMade all StatHist data members private.
Francesco Chemolli [Sat, 10 Dec 2011 21:51:28 +0000 (22:51 +0100)] 
Made all StatHist data members private.

13 years agoFixed some more dead references to stats.
Francesco Chemolli [Sat, 10 Dec 2011 21:34:36 +0000 (22:34 +0100)] 
Fixed some more dead references to stats.

13 years agoRemoved extra symbol in StatCounters.cc object file.
Francesco Chemolli [Sat, 10 Dec 2011 17:01:25 +0000 (18:01 +0100)] 
Removed extra symbol in StatCounters.cc object file.

13 years agoMoved statCounter out of globals.h into own object file.
Francesco Chemolli [Sat, 10 Dec 2011 16:29:31 +0000 (17:29 +0100)] 
Moved statCounter out of globals.h into own object file.
Changed some operator++ from postfix to prefix.

13 years agoMade StatHist::capacity private
Francesco Chemolli [Fri, 9 Dec 2011 22:09:20 +0000 (23:09 +0100)] 
Made StatHist::capacity private

13 years agoMade StatHist::bins private
Francesco Chemolli [Fri, 9 Dec 2011 22:02:47 +0000 (23:02 +0100)] 
Made StatHist::bins private

13 years agoPut HttpHeaderStat, StatCounters and cd_guess_stats classes in their own headers.
Francesco Chemolli [Fri, 9 Dec 2011 20:45:55 +0000 (21:45 +0100)] 
Put HttpHeaderStat, StatCounters and cd_guess_stats classes in their own headers.

13 years agoReverted StatHistLog changes. Too ambitious for now.
Francesco Chemolli [Fri, 9 Dec 2011 17:28:13 +0000 (18:28 +0100)] 
Reverted StatHistLog changes. Too ambitious for now.

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 agoNONWORKING: try subclassing instead of C-style pseudoconstructors.
Francesco Chemolli [Wed, 7 Dec 2011 12:27:14 +0000 (13:27 +0100)] 
NONWORKING: try subclassing instead of C-style pseudoconstructors.

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 agoc++-refactored statHistDump including clients and stubs
Francesco Chemolli [Tue, 6 Dec 2011 22:23:56 +0000 (23:23 +0100)] 
c++-refactored statHistDump including clients and stubs

13 years agoPartially reverted change to statHistDeltaPctile.
Francesco Chemolli [Tue, 6 Dec 2011 15:45:18 +0000 (16:45 +0100)] 
Partially reverted change to statHistDeltaPctile.
Changed to c++ linking convention for all functions.

13 years agoMigrated statHistBin to StatHist::findBin
Francesco Chemolli [Tue, 6 Dec 2011 14:42:04 +0000 (15:42 +0100)] 
Migrated statHistBin to StatHist::findBin

13 years agoMigrated statHistCount callers to StatHist::count
Francesco Chemolli [Tue, 6 Dec 2011 14:24:47 +0000 (15:24 +0100)] 
Migrated statHistCount callers to StatHist::count

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 agoRemoved statHistCopy, started using operator= instead.
Francesco Chemolli [Tue, 6 Dec 2011 12:28:22 +0000 (13:28 +0100)] 
Removed statHistCopy, started using operator= instead.

13 years agoImplemented StatHist default constructor
Francesco Chemolli [Tue, 6 Dec 2011 12:21:20 +0000 (13:21 +0100)] 
Implemented StatHist default constructor
Refactored StatHist::init

13 years agorefactored StatHist::val
Francesco Chemolli [Tue, 6 Dec 2011 07:01:34 +0000 (08:01 +0100)] 
refactored StatHist::val
introduced all prototypes into header-file.

13 years agoRefactored StatHist::clean
Francesco Chemolli [Tue, 6 Dec 2011 05:32:23 +0000 (06:32 +0100)] 
Refactored StatHist::clean

13 years agoMoved StatHist class to its own header-file, included the header from all relevant...
Francesco Chemolli [Mon, 5 Dec 2011 16:52:47 +0000 (17:52 +0100)] 
Moved StatHist class to its own header-file, included the header from all relevant places.

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