]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
12 years agoMerge SBufList
Francesco Chemolli [Sun, 15 Dec 2013 09:28:18 +0000 (10:28 +0100)] 
Merge SBufList

12 years agoClarified comment in SBufAlgos.h, improved coding standards adherence
Francesco Chemolli [Sat, 14 Dec 2013 15:58:04 +0000 (16:58 +0100)] 
Clarified comment in SBufAlgos.h, improved coding standards adherence

12 years agoImplemented Tokenizer::token and its unit test
Francesco Chemolli [Fri, 13 Dec 2013 18:22:08 +0000 (19:22 +0100)] 
Implemented Tokenizer::token and its unit test

12 years agoUrls contain ipv6 ipaddresses may not logged correctly
Christos Tsantilas [Fri, 13 Dec 2013 18:05:59 +0000 (20:05 +0200)] 
Urls contain ipv6 ipaddresses may not logged correctly

The urls which include an ipv6 address as hostname does not logged correctly
in the following cases:
 - When a user is already logged in to an ftp server and a
   new USER command entered with ipv6 address as hostname the logged url
   does not put ipv6 address inside brackets ([]).
 - On FTP error responses generated by squid the url which includes ipv6
   addresses apearred with brackets urlencoded. eg:
         ftp://%5B::1%5D/

12 years agoImplemented more Tokenizer methods and unit tests
Francesco Chemolli [Fri, 13 Dec 2013 15:49:39 +0000 (16:49 +0100)] 
Implemented more Tokenizer methods and unit tests

12 years agoFixed initialization problem in testCharacterSet
Francesco Chemolli [Fri, 13 Dec 2013 07:16:18 +0000 (08:16 +0100)] 
Fixed initialization problem in testCharacterSet
Removed debug code in testTokenizer
Completed testTokenizerPrefix

12 years agoBroken: try and figure out CharacterSet::operator +=; more Tokenizer::prefix unit...
Francesco Chemolli [Fri, 13 Dec 2013 05:47:07 +0000 (06:47 +0100)] 
Broken: try and figure out CharacterSet::operator +=; more Tokenizer::prefix unit tests

12 years agoFtp server host does not reset when a new USER command given
Christos Tsantilas [Thu, 12 Dec 2013 18:27:34 +0000 (20:27 +0200)] 
Ftp server host does not reset when a new USER command given

12 years agoFix linker errors "relocation R_X86_64_32 against .rodata"
Amos Jeffries [Thu, 12 Dec 2013 09:41:39 +0000 (01:41 -0800)] 
Fix linker errors "relocation R_X86_64_32 against .rodata"

... "can not be used when making a shared object; recompile with -fPIC"

Caused by some libraries built without libtool in certain environments.
NP: there are other libraries in Squid built without libtool but they
    appear not to be having these linker issues at this time.

Also, fixes "undefined symbol eui64_aton" uncovered by these changes.

12 years agoFTP gw tracking of server directory
Christos Tsantilas [Wed, 11 Dec 2013 22:13:41 +0000 (00:13 +0200)] 
FTP gw tracking of server directory

This feature works as follows:
- Squid probes the remote directory by inserting PWD commands after the initial
  login and after every CWD command sent by the client.
- Squid remembers the current directory
- client-side generates the URL in pseudo HTTP requests from the domain name
  and the current directory (e.g. GET ftp://ftp.example.com/pub).
- For FTP commands with directories or file names as arguments (e.g. file
  donwload/upload, directory listing), these arguments are appended to the
  current directory (e.g. “RETR project/file.txt” becomes
  “GET ftp://ftp.example.com/pub/project/file.txt”;).

The feature can be controlled via a new ftp-track-dirs=[on|off] option for the
ftp_port squid.conf parameter.
Ftp server directory tracking is disabled by default.

12 years agoRegression in URL helper API
Amos Jeffries [Wed, 11 Dec 2013 11:12:43 +0000 (03:12 -0800)] 
Regression in URL helper API

The backward compatibility logics in redirect.cc are not working as
intended on redirection URLs due to the presence of '=' in the URL and
how the key=value name parsing is performed.

A typical redirection URL looks like:
  http://example.com/?url=http://www.example.net/

and 3.4 has a parser that splits tokens at '=' unconditionally and then
passes the bits as a key and value to the redirector logics which
complains that it does not understand the answer of the URL redirector.
Or treats is an an unknown key=value with no redirection URL.

Either case is handled as a no-redirection result from the helper.

This limits the key names to alphanumeric, hyphen and underscore
characters. Valid URL responses contain characters outside this set and
should no longer be interpreted as keys regardless of the '=' character.

12 years agoFix missing test stub in rev.13178
Amos Jeffries [Wed, 11 Dec 2013 23:41:49 +0000 (12:41 +1300)] 
Fix missing test stub in rev.13178

12 years agoBug 3806: Caching responses with Vary header
Alex Rousskov [Wed, 11 Dec 2013 22:44:59 +0000 (11:44 +1300)] 
Bug 3806: Caching responses with Vary header

12 years agoSet sslcrtvalidator_children concurrency option default value to 1
Christos Tsantilas [Wed, 11 Dec 2013 21:50:06 +0000 (23:50 +0200)] 
Set sslcrtvalidator_children concurrency option default value to 1

12 years agoMerged from trunk
Amos Jeffries [Wed, 11 Dec 2013 01:32:21 +0000 (17:32 -0800)] 
Merged from trunk

12 years agoFix infinite-loop in CharacterSet::operator+=()
Amos Jeffries [Wed, 11 Dec 2013 01:30:34 +0000 (17:30 -0800)] 
Fix infinite-loop in CharacterSet::operator+=()

The uint8_t type value cannot represent the value 256, which is why we
use it as the loop terminator and an iterator of a size larger than
8-bit with a down-cast to prevent the vector accidentally being grown by
an overflow.

12 years agoReimplemented prefix, implemented prefix matching unit test
Francesco Chemolli [Thu, 12 Dec 2013 23:12:29 +0000 (00:12 +0100)] 
Reimplemented prefix, implemented prefix matching unit test

12 years agoFix tokenizer unit tests scaffolding
Francesco Chemolli [Thu, 12 Dec 2013 21:54:03 +0000 (22:54 +0100)] 
Fix tokenizer unit tests scaffolding

12 years agoimplemented untested Tokenizer::find_first_not_in and Tokenizer::prefix
Francesco Chemolli [Thu, 12 Dec 2013 20:27:44 +0000 (21:27 +0100)] 
implemented untested Tokenizer::find_first_not_in and Tokenizer::prefix

12 years agoFist stub of tokenizer unit tests
Francesco Chemolli [Thu, 12 Dec 2013 20:27:03 +0000 (21:27 +0100)] 
Fist stub of tokenizer unit tests

12 years agointerim: better adhere to CharacterSet API, first stubs of Tokenizer
Francesco Chemolli [Thu, 12 Dec 2013 16:52:02 +0000 (17:52 +0100)] 
interim: better adhere to CharacterSet API, first stubs of Tokenizer

12 years agoMerged from trunk
Francesco Chemolli [Wed, 11 Dec 2013 17:53:13 +0000 (18:53 +0100)] 
Merged from trunk

12 years agoUpdate CharacterSet.h
Amos Jeffries [Tue, 10 Dec 2013 16:03:03 +0000 (08:03 -0800)] 
Update CharacterSet.h

12 years agoAdd parser/libsquid-parser.la
Amos Jeffries [Tue, 10 Dec 2013 15:02:19 +0000 (07:02 -0800)] 
Add parser/libsquid-parser.la

Also, basic class CharacterSet definition

12 years ago%tS logformat code, part3
Christos Tsantilas [Mon, 9 Dec 2013 16:54:56 +0000 (18:54 +0200)] 
%tS logformat code, part3

Fix build when GCC 4,4.3 used

12 years agoPrep for 3.4.1
Amos Jeffries [Mon, 9 Dec 2013 01:17:53 +0000 (18:17 -0700)] 
Prep for 3.4.1

12 years agoRelease notes: spotlight key_extras feature
Amos Jeffries [Mon, 9 Dec 2013 01:11:47 +0000 (18:11 -0700)] 
Release notes: spotlight key_extras feature

12 years agoRelease Notes for Squid-3.5
Amos Jeffries [Sat, 7 Dec 2013 07:49:29 +0000 (00:49 -0700)] 
Release Notes for Squid-3.5

12 years agoFix 3.4 Release Notes typo
Amos Jeffries [Sat, 7 Dec 2013 07:49:05 +0000 (00:49 -0700)] 
Fix 3.4 Release Notes typo

12 years agoMerged from trunk 13172.
Alex Rousskov [Fri, 6 Dec 2013 23:52:26 +0000 (16:52 -0700)] 
Merged from trunk 13172.

12 years agoAdd key_extras to proxy authentication schemes.
Christos Tsantilas [Fri, 6 Dec 2013 14:59:47 +0000 (16:59 +0200)] 
Add key_extras to proxy authentication schemes.

The key_extras value is a "quoted string" with logformat %macro support. It is
appended to request line for the authentication helper.

Example usage:
   auth_param basic key_extras "thePort:%>lp"
   auth_param digest key_extras "LocalIP=%>la:%lp"

This is a Measurement Factory project.

12 years ago%tS logformat code, part2
Christos Tsantilas [Fri, 6 Dec 2013 11:09:50 +0000 (13:09 +0200)] 
%tS logformat code, part2

Fix build on 3.HEAD-amd64-CentOs-icc

12 years agoFixed formatting
Francesco Chemolli [Thu, 5 Dec 2013 15:26:22 +0000 (16:26 +0100)] 
Fixed formatting
Moved ToSBufList from SBufList.h/cc to wordlist.h/cc
Fixed some misnamed parameters in SBufAlgos.h

12 years ago%tS logformat code
Christos Tsantilas [Thu, 5 Dec 2013 11:04:45 +0000 (13:04 +0200)] 
%tS logformat code

This patch add the %tS logformat code to represent master transaction start time
in <seconds>.<milliseconds> format, similar to the existing access.log "current
time" field (%ts.%03tu).

Also allow formated values for adaptation_meta values.

This is a Measurement Factory project

12 years agoAdded missing header in SBufAlgos.h
Francesco Chemolli [Thu, 5 Dec 2013 09:31:09 +0000 (10:31 +0100)] 
Added missing header in SBufAlgos.h

12 years agoPrep for SBufList merge from stringng
Francesco Chemolli [Wed, 4 Dec 2013 18:37:08 +0000 (19:37 +0100)] 
Prep for SBufList merge from stringng

12 years agoBug 3589: intercepted and ICAP modified request using a cache_peer
Amos Jeffries [Wed, 4 Dec 2013 00:57:34 +0000 (13:57 +1300)] 
Bug 3589: intercepted and ICAP modified request using a cache_peer

12 years agoRemoved spurious source files from src/icmp/Makefile.am
Francesco Chemolli [Tue, 3 Dec 2013 07:49:13 +0000 (08:49 +0100)] 
Removed spurious source files from src/icmp/Makefile.am

12 years agoBug 3935: Invalid pointer dereference when peeking at origin server certificate
Christos Tsantilas [Mon, 2 Dec 2013 18:33:26 +0000 (20:33 +0200)] 
Bug 3935: Invalid pointer dereference when peeking at origin server certificate

We must check request->clientConnectionManager pointer for validity before
dereferencing it.

This is a Measurement Factory project

12 years agoDocumented that ACLs should be refcounted.
Alex Rousskov [Mon, 2 Dec 2013 00:36:24 +0000 (17:36 -0700)] 
Documented that ACLs should be refcounted.

Refcounting would avoid ACL destruction problems (when some ACLs use other
ACLs or when an ACL goes async during reconfigure) and may even reduce
problems with AclMatchedName.

12 years agoDestroy ACLs in the reverse order of creation to avoid destruction segfaults
Alex Rousskov [Mon, 2 Dec 2013 00:35:50 +0000 (17:35 -0700)] 
Destroy ACLs in the reverse order of creation to avoid destruction segfaults
during reconfiguration.

Group ACLs created later may use other ACLs created earlier. A group ACL must
be deleted first so that its AclDeleter can safely access registration status
(and avoid double deletion) of the ACLs it uses. Since ACLs are remembered (in
Config.aclList) using a singly-linked list, it is difficult to change their
deletion order.  Instead, we change their listing order from FIFO to LIFO.

12 years agoPortability: sleep() is sometimes a macro
Amos Jeffries [Sun, 1 Dec 2013 08:02:49 +0000 (01:02 -0700)] 
Portability: sleep() is sometimes a macro

sleep() is sometimes defined as a macro. Such as in Squid compat library.
Use another name for the sleep starting method in class Ipc::UdsOp

  This is an iCelero Project

12 years agoWindows: fix compile errors in WinSvc.cc
Amos Jeffries [Sun, 1 Dec 2013 07:37:53 +0000 (00:37 -0700)] 
Windows: fix compile errors in WinSvc.cc

Fix defined by unused symbol errors in WinSvc.cc

Also, set the service error mode to prevent Windows Error Reporting
dialog boxes appearing.

  This is an iCelero Project

12 years agoPortability: std::string:npos is not always appropriate for String::npos
Amos Jeffries [Sun, 1 Dec 2013 07:24:58 +0000 (00:24 -0700)] 
Portability: std::string:npos is not always appropriate for String::npos

On some systems such as Windows MinGW the signed/unsigned property of
std::string::npos does not match up with the Squdi String class size_type
signed/unsigned property. Resulting in compiler signed vs unsigned
mismatch errors when compiling.

  This is an iCelero project.

12 years agoPortability: refresh_pattern requires regex
Amos Jeffries [Sun, 1 Dec 2013 07:12:31 +0000 (00:12 -0700)] 
Portability: refresh_pattern requires regex

The GnuRegex portability wrapper is required explicitly by
RefreshPattern.h on some systems which do not include regex.h implicitly
via other paths.

  This is an iCelero project

12 years agolibrfcnb: portability fixes
Amos Jeffries [Sun, 1 Dec 2013 07:00:43 +0000 (00:00 -0700)] 
librfcnb: portability fixes

Add #include wrapper protection for headers missing on Windows MinGW.

  This is an iCelero Project

12 years agoOpenBSD portability fix in DiskThreads
Francesco Chemolli [Sat, 30 Nov 2013 22:18:16 +0000 (23:18 +0100)] 
OpenBSD portability fix in DiskThreads

12 years agoPrep for 3.3.11 and 3.4.0.3
Amos Jeffries [Sat, 30 Nov 2013 13:11:42 +0000 (06:11 -0700)] 
Prep for 3.3.11 and 3.4.0.3

12 years agoProtect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName).
Nathan Hoad [Fri, 29 Nov 2013 23:44:28 +0000 (16:44 -0700)] 
Protect aclIsProxyAuth() debugging from NULL names (via NULL AclMatchedName).

Related to Bug 3972 fix in r13156.

12 years agoBug 3972: Segfault when getting the deny info page ID after a reconfigure
Nathan Hoad [Fri, 29 Nov 2013 23:26:03 +0000 (16:26 -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.

12 years agoSupport libecap v1.0, allowing asynchronous adapters and eCAP version checks.
Alex Rousskov [Fri, 29 Nov 2013 19:47:54 +0000 (12:47 -0700)] 
Support libecap v1.0, allowing asynchronous adapters and eCAP version checks.

After these changes, Squid can support eCAP adapters built with libecap v1.0,
but stops supporting adapters built with earlier libecap versions (due to API
changes). The new libecap version allows Squid to better check the version of
the eCAP adapter being loaded as well as the version of the eCAP library being
used. This should help with migration to libecap v1.0.

Expose [running] main event loop as a global so that modules can add engines.

12 years agoAdded missing stub_lipbicmp.cc to testUfs
Francesco Chemolli [Fri, 29 Nov 2013 08:19:40 +0000 (09:19 +0100)] 
Added missing stub_lipbicmp.cc to testUfs

12 years agoReceive annotations from external ACL helpers
Amos Jeffries [Fri, 29 Nov 2013 04:41:07 +0000 (21:41 -0700)] 
Receive annotations from external ACL helpers

This completes the annotation support for common helper interfaces by
making custom key=value pairs sent by external ACL helpers in to
NotePair objects and attaching to the active request.

The other side of this - sending values to the helper is deferred until
the helper format can be converted to logformat codes.

12 years agoAdd missing ipcache.cc stub in testUfs
Francesco Chemolli [Thu, 28 Nov 2013 16:50:49 +0000 (17:50 +0100)] 
Add missing ipcache.cc stub in testUfs

12 years agoImplement SBuf and MemBlob size distribution stats
Francesco Chemolli [Wed, 27 Nov 2013 15:52:03 +0000 (16:52 +0100)] 
Implement SBuf and MemBlob size distribution stats

12 years agoCleanup: convert helper allocation from cbdataAlloc to new
Amos Jeffries [Wed, 27 Nov 2013 00:37:24 +0000 (13:37 +1300)] 
Cleanup: convert helper allocation from cbdataAlloc to new

The helper_server and helper_stateful_server classes are already
CBDATA_CLASS2 defined classes with new/delete operators and the free
operation already handled by delete(). However teh allocation was not
using new() and thus not calling the class constructors properly.

12 years agoDrop obsolete class StringArea
Amos Jeffries [Tue, 26 Nov 2013 09:43:29 +0000 (02:43 -0700)] 
Drop obsolete class StringArea

class StringArea was always intended to only be a temporary measure
before SBuf was completed and merged. That has now happened.

12 years agoBug 3782: Digest authentication not obeying nonce_max_count
Frederic Bourgeois [Thu, 21 Nov 2013 23:58:59 +0000 (15:58 -0800)] 
Bug 3782: Digest authentication not obeying nonce_max_count

12 years agoFix other issues in rev.13143
Amos Jeffries [Sat, 23 Nov 2013 05:21:34 +0000 (22:21 -0700)] 
Fix other issues in rev.13143

12 years agoFix const-correctness in rev.13143
Amos Jeffries [Thu, 21 Nov 2013 13:05:47 +0000 (05:05 -0800)] 
Fix const-correctness in rev.13143

12 years agoMissing include from rev.13143
Amos Jeffries [Sat, 23 Nov 2013 01:40:38 +0000 (18:40 -0700)] 
Missing include from rev.13143

12 years agoBug 3970: max_filedescriptors disabled due to missing setrlimit
Amos Jeffries [Sat, 23 Nov 2013 01:28:52 +0000 (18:28 -0700)] 
Bug 3970: max_filedescriptors disabled due to missing setrlimit

12 years agoRemove many uses of String::defined()
Amos Jeffries [Sat, 23 Nov 2013 00:58:42 +0000 (13:58 +1300)] 
Remove many uses of String::defined()

Making it private to String:: so that we can easier avoid dealing with
NULL buffer vs "" problems in future.

12 years agoSource Maintenance: move 3.HEAD snapshot build to website scripts
Automatic source maintenance [Thu, 21 Nov 2013 22:12:03 +0000 (15:12 -0700)] 
Source Maintenance: move 3.HEAD snapshot build to website scripts

12 years agoBug 3967: ipc/Kid.cc compilation failure: 'time' was not declared in this scope
Thomas De Schampheleire [Thu, 21 Nov 2013 15:36:36 +0000 (08:36 -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.

12 years agoSourceFormat Enforcement
Automatic source maintenance [Tue, 19 Nov 2013 01:12:54 +0000 (18:12 -0700)] 
SourceFormat Enforcement

12 years agoUse CPPUNIT_ASSERT_EQUAL wherever it makes sense in unit tests
Francesco Chemolli [Mon, 18 Nov 2013 17:03:55 +0000 (18:03 +0100)] 
Use CPPUNIT_ASSERT_EQUAL wherever it makes sense in unit tests

12 years agoRe-compute Range response content offset after an FTP response was adapted.
Alex Rousskov [Mon, 18 Nov 2013 15:55:05 +0000 (08:55 -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.

12 years agoBug 3960: Dead Peers Are Not Revived
Amos Jeffries [Mon, 18 Nov 2013 11:40:56 +0000 (04:40 -0700)] 
Bug 3960: Dead Peers Are Not Revived

12 years agoWindows: Fix aclocal "is already registered" errors
Amos Jeffries [Sat, 16 Nov 2013 13:19:28 +0000 (06:19 -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.

12 years agoWindows: Ensure array index is an integer in C code
Amos Jeffries [Sat, 16 Nov 2013 12:42:10 +0000 (01:42 +1300)] 
Windows: Ensure array index is an integer in C code

MSVC compiler does not accet 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.

12 years agoSourceFormat Enforcement
Automatic source maintenance [Sat, 16 Nov 2013 01:14:32 +0000 (18:14 -0700)] 
SourceFormat Enforcement

12 years agoRecognize FTP 125 (Data connection already open) as we do 150 response.
Christos Tsantilas [Fri, 15 Nov 2013 17:56:36 +0000 (10:56 -0700)] 
Recognize FTP 125 (Data connection already open) as we do 150 response.

Microsoft servers seem to favor 125 responses in some conditions.

12 years agoReverted to using mem.cc for testSBuf
Francesco Chemolli [Fri, 15 Nov 2013 16:56:59 +0000 (17:56 +0100)] 
Reverted to using mem.cc for testSBuf

12 years agoImproved stubs for mem.cc and made wider use of them
Francesco Chemolli [Fri, 15 Nov 2013 09:16:26 +0000 (10:16 +0100)] 
Improved stubs for mem.cc and made wider use of them

12 years agoMerged from trunk
Francesco Chemolli [Fri, 15 Nov 2013 09:14:52 +0000 (10:14 +0100)] 
Merged from trunk

12 years agoAdd EPRT and EPSV commands to FTP FEAT response if not already there
Christos Tsantilas [Wed, 13 Nov 2013 22:20:55 +0000 (15:20 -0700)] 
Add EPRT and EPSV commands to FTP FEAT response if not already there
because Squid FTP gw supports both even if the FTP origin server does not.

12 years agoFixed stub profile to make "make check" happier.
Alex Rousskov [Wed, 13 Nov 2013 18:35:22 +0000 (11:35 -0700)] 
Fixed stub profile to make "make check" happier.

12 years agoPropagate FTP server connection closures to idle FTP gw clients but
Alex Rousskov [Wed, 13 Nov 2013 18:29:13 +0000 (11:29 -0700)] 
Propagate FTP server connection closures to idle FTP gw clients but
carefully close the FTP server connection upon receiving an FTP 221 response.

FTP gateway code pins server connections; when there is no traffic, the
client-side code holds on to the server connection. The old code did not
notice pinned server connection closure until it was time to write the next
FTP request to that connection. Squid now monitors the idle pinned server
connection and closes the client connection if the server connection closes
(or, to be more precise, if the server connection gets marked as ready for
reading).

Client-side monitoring of an idle pinned connection ends when the server side
starts using the pinned connection again (because the server side becomes
responsible for monitoring EOF conditions then). Added
borrowPinnedConnection() and related methods to distinguish validation of
pinned connection and responsibility transfer.

Careful closure of the FTP server connection upon receiving an FTP 221
response is necessary to avoid the client-side idle server connection
monitoring code closing the client connection upon detecting server-side EOF
_before_ the client side had enough time to forward that 221 response to the
not-yet-idle client. The latter may take some time because, in part, the
response may have to go through an ICAP RESPMOD service first.

12 years agoMade use of stub_mem.cc
Francesco Chemolli [Wed, 13 Nov 2013 17:30:54 +0000 (18:30 +0100)] 
Made use of stub_mem.cc

12 years agoBug 3956: xstrndup: tried to dup a NULL pointer
Frederic Bourgeois [Wed, 13 Nov 2013 10:53:49 +0000 (03:53 -0700)] 
Bug 3956: xstrndup: tried to dup a NULL pointer

12 years agoAdd required SBuf sources
Francesco Chemolli [Wed, 13 Nov 2013 09:58:16 +0000 (10:58 +0100)] 
Add required SBuf sources

12 years agoPolish: split HttpRequest unit tests into scoped groups
Amos Jeffries [Wed, 13 Nov 2013 04:20:41 +0000 (21:20 -0700)] 
Polish: split HttpRequest unit tests into scoped groups

This allows the compiler to optimize symbol tracking per-scope instead
of having to track large sets of macro-expanded test variables.

12 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 13 Nov 2013 01:13:42 +0000 (18:13 -0700)] 
SourceFormat Enforcement

12 years agoRemove several goto from HttpHeader.cc
Amos Jeffries [Wed, 13 Nov 2013 00:15:24 +0000 (13:15 +1300)] 
Remove several goto from HttpHeader.cc

12 years agoMake HTTP header parser obey relaxed_header_parser
Amos Jeffries [Wed, 13 Nov 2013 00:06:19 +0000 (13:06 +1300)] 
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.

12 years agoadaptation_service ACL
Christos Tsantilas [Tue, 12 Nov 2013 14:48:50 +0000 (16:48 +0200)] 
adaptation_service ACL

This patch adds the new ACL adaptation_service, to match the name of:

   - an adaptation service or group that had been applied to the master
     transaction in the past
   - an adaptation service or group that is being applied to the master
     transaction now

An adaptation group is formed by adaptation_service_chain or adaptation_service_set directives.
Both REQMOD and RESPMOD services, successful or failed service applications
matches this acl.

This is a Measurement Factory project

12 years agoLeave Copyright and (C) (but not AUTHOR-like) boilerplate lines in sources
Alex Rousskov [Wed, 6 Nov 2013 01:11:17 +0000 (18:11 -0700)] 
Leave Copyright and (C) (but not AUTHOR-like) boilerplate lines in sources
except when we [think we will] have a permission to move them to CONTRIBUTORS.

If one Copyright or (C) line in the old boilerplate is preserved, then all
such lines are preserved.

12 years agoInitial support for gatewaying FTP EPRT and EPSV commands.
Alex Rousskov [Mon, 4 Nov 2013 23:52:32 +0000 (16:52 -0700)] 
Initial support for gatewaying FTP EPRT and EPSV commands.

Client side validates the IPv6-friendly commands, but the server side
independently decides which of the four standard data connection establishment
commands to use. In practice only PASV and EPSV commands are sent because
Squid still does not support active FTP connections on the server side.

Moved EPSV- and some PASV-handling code from proxy-specific ftp.cc into
general FtpServer.cc for the client-side gateway code to reuse.

12 years agoDocs: update mention of URL-rewrit helper result codes
Amos Jeffries [Sun, 3 Nov 2013 04:30:23 +0000 (21:30 -0700)] 
Docs: update mention of URL-rewrit helper result codes

- OK action when no redirect/rewrite kv-pairs was not mentioned
- BH message= kv-pair was not mentioned.

12 years agoUpdate class MessageCounters to MessageSizes
Amos Jeffries [Mon, 11 Nov 2013 12:09:44 +0000 (05:09 -0700)] 
Update class MessageCounters to MessageSizes

Also, renaming polish after audit feedback.

12 years agoFix typo in rev.13121
Amos Jeffries [Mon, 11 Nov 2013 12:06:11 +0000 (05:06 -0700)] 
Fix typo in rev.13121

12 years agoFix uninitialized members in SBufFindTest.cc
Amos Jeffries [Mon, 11 Nov 2013 11:47:36 +0000 (04:47 -0700)] 
Fix uninitialized members in SBufFindTest.cc

  Detected by Coverity Scan. Issue 1104279.

12 years agoFix uninitialized members in stub_HttpReply.cc
Amos Jeffries [Mon, 11 Nov 2013 11:43:53 +0000 (04:43 -0700)] 
Fix uninitialized members in stub_HttpReply.cc

  Detected by Coverity Scan. Issue 740582.

12 years agoFix possible NULL-dereference handling annotations
Amos Jeffries [Mon, 11 Nov 2013 11:24:23 +0000 (04:24 -0700)] 
Fix possible NULL-dereference handling annotations

  Detected by Coverity Scan. Issue 1127088

12 years agoLanguage: it updates
Francesco Chemolli [Sun, 10 Nov 2013 22:34:55 +0000 (23:34 +0100)] 
Language: it updates

12 years agoSourceFormat Enforcement
Automatic source maintenance [Fri, 8 Nov 2013 04:15:43 +0000 (21:15 -0700)] 
SourceFormat Enforcement

12 years agoReplace blocking sleep(3) and close UDS socket on failures.
Alex Rousskov [Thu, 7 Nov 2013 19:45:12 +0000 (12:45 -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.

12 years agoBug 3936: error-details.txt parse error
Christos Tsantilas [Thu, 7 Nov 2013 10:46:14 +0000 (12:46 +0200)] 
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

12 years agoFix stub_external_acl on icc
Francesco Chemolli [Thu, 7 Nov 2013 02:59:49 +0000 (03:59 +0100)] 
Fix stub_external_acl on icc