]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
12 years agoReverted trunk r12255 changes. Provided a portable flexible arrays replacement.
Alex Rousskov [Tue, 16 Oct 2012 00:26:06 +0000 (18:26 -0600)] 
Reverted trunk r12255 changes. Provided a portable flexible arrays replacement.

Trunk r12255 made Clang compiler happy by removing flexible nonPod[] arrays.
Unfortunately, it also moved shared memory items into local memory (in some
cases uninitialized).

This change provides a Clang-friendly flexible array replacement while keeping
items in the shared memory (and using placement-new initialization). The code
may have become even less readable, but hopefully more portable.

N.B. Flexible arrays were introdiced in C99 standard, after C++ was
standardized in 1998. They are not yet in any revised C++ standard, but most
C++ compilers support them, at least for PODs.

12 years agoAllow a ufs cache_dir entry to coexist with a shared memory cache entry
Alex Rousskov [Tue, 16 Oct 2012 00:18:09 +0000 (18:18 -0600)] 
Allow a ufs cache_dir entry to coexist with a shared memory cache entry
instead of being released when it becomes idle.

The original boolean version of the StoreController::dereference() code
(r11730) was written to make sure that idle unlocked local store_table entries
are released if nobody needs them (to avoid creating inconsistencies with
shared caches that could be modified in a different process).

Then, in r11786, we realized that the original code was destroying non-shared
memory cache entries if there were no cache_dirs to vote for keeping them in
store_table. I fixed that by changing the StoreController::dereference() logic
from "remove if nobody needs it" to "remove if somebody objects to keeping
it". That solved the problem at hand, but prohibited an entry to exist in
a non-shared cache_dir and in a shared memory cache at the same time.

We now go back to the original "remove if nobody needs it" design but also
give non-shared memory cache a vote so that it can protect idle but suitable
for memory cache entries from being released if there are no cache_dirs to
vote for them.

This is a second revision of the fix. The first one (r12231) was reverted
because it did not pass tests/testRock unit tests on some platforms. The unit
tests assume that the entry slot is not locked after the entry is stored, but
the first revision of the fix allowed idle entries to remain in store_table
and, hence, their slots were locked and could not be replaced, causing
assertions.  This revision allows the idle entry to be destroyed (and its slot
unlocked) if [non-shared] memory caching is disabled.

It is not clear why only some of the platforms were affected by this. Should
not memory caching be disabled everywhere during testRock (because testRock
does not set memory cache capacity and memory cache entry size limits)?

12 years agoFix linking issue in testDiskIO when optimizations are disabled
Francesco Chemolli [Sat, 13 Oct 2012 21:31:34 +0000 (23:31 +0200)] 
Fix linking issue in testDiskIO when optimizations are disabled

12 years agoWindows: filter the buildable helpers for MinGW
Amos Jeffries [Sat, 13 Oct 2012 05:39:01 +0000 (23:39 -0600)] 
Windows: filter the buildable helpers for MinGW

12 years agolibsspwin32: SSP_LogonUser takes char * parameters
Amos Jeffries [Sat, 13 Oct 2012 05:29:03 +0000 (23:29 -0600)] 
libsspwin32: SSP_LogonUser takes char * parameters

There is no need to cast these parameters via void*. Both the library
and the basic auth helper(s) that use it work with char* strings.

12 years agoWindows: C++ conversion for libsspwin32
Amos Jeffries [Fri, 12 Oct 2012 12:50:01 +0000 (06:50 -0600)] 
Windows: C++ conversion for libsspwin32

Updates this Squid convenience library to build as C++.

Also, fixed header include path for libntlmauth symbol definitions.

12 years agoPortability: pass OS name to helper config.test scripts
Amos Jeffries [Fri, 12 Oct 2012 12:25:08 +0000 (06:25 -0600)] 
Portability: pass OS name to helper config.test scripts

This will help us perform OS-specific enable/disable rather than having
to identify some software or file that SHOULD exist only in those OS, but
which might exist elsewhere for weird reasons (ie windows.h).

NP: the $@ which was being passed was unused by any current config.test
  Removed it and converted to fixed-position parameters for easier
  script development.

12 years agoWindows: fix error: variable 'h_error' set but not used
Amos Jeffries [Fri, 12 Oct 2012 04:55:14 +0000 (22:55 -0600)] 
Windows: fix error: variable 'h_error' set but not used

12 years agoOptimization: Test faster condition first. No functionality changes expected.
Alex Rousskov [Fri, 12 Oct 2012 04:14:44 +0000 (22:14 -0600)] 
Optimization: Test faster condition first. No functionality changes expected.

12 years agoBug 3655: pinning failure breaks NTLM and Negotiate authentication
Wolfgang Breyha [Fri, 12 Oct 2012 02:21:16 +0000 (20:21 -0600)] 
Bug 3655: pinning failure breaks NTLM and Negotiate authentication

12 years agoCorrect --enable-build-info on out-of-tree builds
Henrik Nordstrom [Thu, 11 Oct 2012 21:14:50 +0000 (23:14 +0200)] 
Correct --enable-build-info on out-of-tree builds

bzr expects to be run from the source tree, not the build directory

12 years agoAdded missing library in testStatHist
Francesco Chemolli [Thu, 11 Oct 2012 08:57:12 +0000 (10:57 +0200)] 
Added missing library in testStatHist

12 years agoWindows: better wrap C++-specific code in compat layer
Amos Jeffries [Thu, 11 Oct 2012 07:19:02 +0000 (01:19 -0600)] 
Windows: better wrap C++-specific code in compat layer

12 years agoWindows: build Windows specific libraries only on Windows.
Amos Jeffries [Thu, 11 Oct 2012 07:10:01 +0000 (01:10 -0600)] 
Windows: build Windows specific libraries only on Windows.

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

12 years agoStatic Code Analysis: varargs cleanup, improvements to readability
Francesco Chemolli [Wed, 10 Oct 2012 17:06:38 +0000 (19:06 +0200)] 
Static Code Analysis: varargs cleanup, improvements to readability

12 years agoStatic Code Analysis: fix varargs handling in snmp_core.cc
Francesco Chemolli [Wed, 10 Oct 2012 09:14:27 +0000 (11:14 +0200)] 
Static Code Analysis: fix varargs handling in snmp_core.cc

12 years agoStatic Code Analysis: fix varargs handling in snmp_core.cc
Francesco Chemolli [Wed, 10 Oct 2012 08:44:23 +0000 (10:44 +0200)] 
Static Code Analysis: fix varargs handling in snmp_core.cc

12 years agossl_crtd: set new certificate serial number to zero
Amos Jeffries [Wed, 10 Oct 2012 04:47:29 +0000 (22:47 -0600)] 
ssl_crtd: set new certificate serial number to zero

Initialize new BN value to zero instead of simply testing and ignoring
the result.

Detected by Jenkins running clang on FreeBSD 9.

12 years agoFix using assignment as a condition without parentheses
Amos Jeffries [Wed, 10 Oct 2012 00:57:33 +0000 (13:57 +1300)] 
Fix using assignment as a condition without parentheses

12 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 10 Oct 2012 00:13:20 +0000 (18:13 -0600)] 
SourceFormat Enforcement

12 years agoPortability: fix several class/struct type mismatches
Amos Jeffries [Tue, 9 Oct 2012 23:15:44 +0000 (12:15 +1300)] 
Portability: fix several class/struct type mismatches

Leftover problem from trunk r12339 changes.

Detected by clang on FreeBSD 9.

12 years agoWindows: portability layer updates for MinGW environment
Amos Jeffries [Tue, 9 Oct 2012 09:23:00 +0000 (03:23 -0600)] 
Windows: portability layer updates for MinGW environment

* Move the util.h definitions into os/mswindows.h compat header.
* Add wrapper definitions for many MinGW specific POSIX symbols
* UPdate POSIX wrapper types

A few of these changes are suspect as to whether they work for CygWin and
MSCV. Particularly the POSIX wrapper type changes. We still need a set of
comprehensive MinGW, Cygwin and MSCV build tests to be done. These changes
were enough to build on MinGW some time back, but additional changes are
now likely to be needed and no run-time testing has been done so far.

12 years agoFix ipv6 enabled squidclient. Was failing with assertion failure due to ipv6 support...
Henrik Nordstrom [Tue, 9 Oct 2012 09:00:20 +0000 (11:00 +0200)] 
Fix ipv6 enabled squidclient. Was failing with assertion failure due to ipv6 support not being probed automatically.

12 years agoFreeBSD: net/if_dl.h seems to require param.h
Amos Jeffries [Tue, 9 Oct 2012 01:03:20 +0000 (19:03 -0600)] 
FreeBSD: net/if_dl.h seems to require param.h

12 years agoSourceFormat Enforcement
Automatic source maintenance [Tue, 9 Oct 2012 00:13:18 +0000 (18:13 -0600)] 
SourceFormat Enforcement

12 years agoPortability: typo in EUI header requirement checks
Amos Jeffries [Mon, 8 Oct 2012 21:51:51 +0000 (15:51 -0600)] 
Portability: typo in EUI header requirement checks

12 years agoFix includes missed in rev12369
Amos Jeffries [Mon, 8 Oct 2012 09:57:20 +0000 (03:57 -0600)] 
Fix includes missed in rev12369

12 years agoWindows: simplify abstraction layer header files
Amos Jeffries [Mon, 8 Oct 2012 08:40:01 +0000 (02:40 -0600)] 
Windows: simplify abstraction layer header files

Merge compat/os/windows.h, compat/os/mswin.h, and include/squid_windows.h
into a single compat/os/mswindows.h pulled in via the compat.h.

Also, rename compat/mswin.cc to match the new header .h name.

12 years agoWindows: drop unused WIN32_pipe() implementation
Amos Jeffries [Mon, 8 Oct 2012 08:11:02 +0000 (02:11 -0600)] 
Windows: drop unused WIN32_pipe() implementation

The WIN32_pipe() wrapper function is not necessary on MinGW where _pipe()
is available, and is unused on other Windows builds where helper IPC
layer has been written to use STREAM sockets instead of pipe()

12 years agoWindows: merge alternative getrusage() into squid_getrusage() wrapper
Amos Jeffries [Mon, 8 Oct 2012 08:00:06 +0000 (02:00 -0600)] 
Windows: merge alternative getrusage() into squid_getrusage() wrapper

Since we are already providing a wrapper layer for getrusage() we can
merge the Windows alternative implementation into our wrapper directly.
No need to perform multiple layers of abstraction.

12 years agoPortability: change Ipc::Port::listen to doListen()
Amos Jeffries [Mon, 8 Oct 2012 07:20:51 +0000 (01:20 -0600)] 
Portability: change Ipc::Port::listen to doListen()

listen() clashes with POSIX function of the same name.
Some systems (ie MinGW) define it as a macro wrapper.

12 years agoWindows: disable purge tool
Amos Jeffries [Mon, 8 Oct 2012 07:16:04 +0000 (01:16 -0600)] 
Windows: disable purge tool

The purge tool requires quite a few updates before it will build on Windows.
It is easier at this point to simply not build it.

12 years agoWindows: wrap sys/shm.h sys/ipc.h includes
Amos Jeffries [Mon, 8 Oct 2012 07:06:28 +0000 (01:06 -0600)] 
Windows: wrap sys/shm.h sys/ipc.h includes

12 years agoWindows: correct C++ type usage on LoadSecurityDll()
Amos Jeffries [Mon, 8 Oct 2012 06:59:13 +0000 (00:59 -0600)] 
Windows: correct C++ type usage on LoadSecurityDll()

12 years agontlm_sspi_auth: correct linkage to library libntlmauth.la
Amos Jeffries [Mon, 8 Oct 2012 06:57:13 +0000 (00:57 -0600)] 
ntlm_sspi_auth: correct linkage to library libntlmauth.la

12 years agoWindows: updated test for ws2tcpip.h and windows.h
Amos Jeffries [Mon, 8 Oct 2012 06:50:37 +0000 (00:50 -0600)] 
Windows: updated test for ws2tcpip.h and windows.h

12 years agoWindows: check recv() parameter type
Amos Jeffries [Mon, 8 Oct 2012 06:38:35 +0000 (00:38 -0600)] 
Windows: check recv() parameter type

12 years agoPortability: permit eCAP build without pkg-config
Amos Jeffries [Mon, 8 Oct 2012 06:30:38 +0000 (00:30 -0600)] 
Portability: permit eCAP build without pkg-config

Windows does not have a port of pkg-config, other OS may be in the same
situation. That only impacts on Squids ability to confirm the library
version not on its ability to link and use it.

This reduces some configure errors to warnings when pkg-config is not
located on the local system.

12 years agoWindows: provide mkdir() wrapper
Amos Jeffries [Mon, 8 Oct 2012 05:35:27 +0000 (23:35 -0600)] 
Windows: provide mkdir() wrapper

12 years agoWindows: update several __MINGW32__ to generic _SQUID_MINGW_
Amos Jeffries [Mon, 8 Oct 2012 05:28:02 +0000 (23:28 -0600)] 
Windows: update several __MINGW32__ to generic _SQUID_MINGW_

12 years agoWindows: cleanup Squid OS detection macros
Amos Jeffries [Mon, 8 Oct 2012 05:21:11 +0000 (23:21 -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

12 years agoWindows: fix detection of GNU atomis operations
Amos Jeffries [Mon, 8 Oct 2012 04:33:15 +0000 (22:33 -0600)] 
Windows: fix detection of GNU atomis operations

On MinGW the GNU atomis operatiosn symbols are defined but do not work.
We require a run-time test to detect problems. Not just a compiler check.

12 years agoWindows: support customization of --prefix= via compat/autoconf.h
Amos Jeffries [Mon, 8 Oct 2012 04:27:26 +0000 (22:27 -0600)] 
Windows: support customization of --prefix= via compat/autoconf.h

Rather than defining DEFAULT_PREFIX on the compiler command line this
builds its value into autoconf.h for use whenever needed. Avoiding
otential issues with buggy Makefile.am coding.

Also allows the --prefix value to be sourced from the autoconf internal
default settings instead of requiring a manual --prefix parameter for
SNMP module to build and link properly.

12 years agoWindows: disable Mmapped DiskIO support
Francesco Chemolli [Mon, 8 Oct 2012 04:13:19 +0000 (22:13 -0600)] 
Windows: disable Mmapped DiskIO support

MinGW does not always supply mmap.

TODO:
 Add proper feature detection to decide when this IS available on Windows.
 Use the Windows native mmap functionality.

12 years agoTypo in rev12352
Amos Jeffries [Sun, 7 Oct 2012 05:00:02 +0000 (23:00 -0600)] 
Typo in rev12352

12 years agoFix error: 'opt_parse_cfg_only' was not declared in this scope
Amos Jeffries [Sun, 7 Oct 2012 03:16:30 +0000 (21:16 -0600)] 
Fix error: 'opt_parse_cfg_only' was not declared in this scope

12 years agoRelease Notes: 3.3 updates
Amos Jeffries [Sun, 7 Oct 2012 03:11:39 +0000 (21:11 -0600)] 
Release Notes: 3.3 updates

12 years agoPolish: use DBG_PARSE_NOTE to warn about deprecated logformat tokens
Amos Jeffries [Sat, 6 Oct 2012 11:59:07 +0000 (05:59 -0600)] 
Polish: use DBG_PARSE_NOTE to warn about deprecated logformat tokens

12 years agoBranch 3.3.0.0
Automatic source maintenance [Sat, 6 Oct 2012 04:24:49 +0000 (22:24 -0600)] 
Branch 3.3.0.0

12 years agoPrep for 3.2.2
Amos Jeffries [Sat, 6 Oct 2012 02:54:53 +0000 (20:54 -0600)] 
Prep for 3.2.2

12 years agoSourceFormat Enforcement
Automatic source maintenance [Sat, 6 Oct 2012 00:13:17 +0000 (18:13 -0600)] 
SourceFormat Enforcement

12 years agoDo not check 'reply content_length is too big' condition twice.
Alex Rousskov [Fri, 5 Oct 2012 23:36:22 +0000 (17:36 -0600)] 
Do not check 'reply content_length is too big' condition twice.

The check got duplicated was

4410
committer: hno
branch nick: HEAD
timestamp: Wed 2000-05-03 00:49:26 +0000
message:
  hno squid-2.2.STABLE2.to_large_objects-2.patch
  Squid-2.2.STABLE2: Don't swap out objects > maximum_object_size

12 years agoAdded missing source files in recipe for testStatHist
Francesco Chemolli [Fri, 5 Oct 2012 15:56:08 +0000 (17:56 +0200)] 
Added missing source files in recipe for testStatHist

12 years agoMove fatal family of functions to own implementation and stub files.
Francesco Chemolli [Fri, 5 Oct 2012 13:38:19 +0000 (15:38 +0200)] 
Move fatal family of functions to own implementation and stub files.

12 years agoMerged from trunk
Francesco Chemolli [Fri, 5 Oct 2012 13:27:37 +0000 (15:27 +0200)] 
Merged from trunk

12 years agoShuffled fatal family of functions into own implementation.
Francesco Chemolli [Fri, 5 Oct 2012 13:10:15 +0000 (15:10 +0200)] 
Shuffled fatal family of functions into own implementation.
Created stub for fatal.cc.
Move all files to src/ due to their dependencies.

12 years agoPolish: convert several opt_parse_cfg_only to DBG_PARSE_NOTE
Amos Jeffries [Fri, 5 Oct 2012 10:26:39 +0000 (22:26 +1200)] 
Polish: convert several opt_parse_cfg_only to DBG_PARSE_NOTE

12 years agoMerged from trunk
Francesco Chemolli [Fri, 5 Oct 2012 07:27:05 +0000 (09:27 +0200)] 
Merged from trunk

12 years agoSourceFormat merge: removed CVS-Id tags, removed unnecessary extern and SQUIDCEXTERN...
Francesco Chemolli [Fri, 5 Oct 2012 07:26:35 +0000 (09:26 +0200)] 
SourceFormat merge: removed CVS-Id tags, removed unnecessary extern and SQUIDCEXTERN declarations

12 years agoMoved fatal functions out of tools.cc and into own source file in lib/fatal.cc
Francesco Chemolli [Thu, 4 Oct 2012 13:01:09 +0000 (15:01 +0200)] 
Moved fatal functions out of tools.cc and into own source file in lib/fatal.cc

12 years agoRemoved leftover CVS-Id markers
Francesco Chemolli [Thu, 4 Oct 2012 11:10:17 +0000 (13:10 +0200)] 
Removed leftover CVS-Id markers

12 years agoRemoved unnecessary extern declarations.
Francesco Chemolli [Thu, 4 Oct 2012 09:14:06 +0000 (11:14 +0200)] 
Removed unnecessary extern declarations.
Changed mismatching class/struct declaration in fde.h
Created default constructor for _fde_disk and moved there proper initialization
Removed some dead function declarations

12 years agoSourceFormat Enforcement
Automatic source maintenance [Thu, 4 Oct 2012 00:23:44 +0000 (18:23 -0600)] 
SourceFormat Enforcement

12 years agoremoved many SQUIDCEXTERN declarations
Francesco Chemolli [Wed, 3 Oct 2012 17:32:57 +0000 (19:32 +0200)] 
removed many SQUIDCEXTERN declarations

12 years agosourceformat: split protos.h into more specific headers, change many functions' likag...
Francesco Chemolli [Wed, 3 Oct 2012 17:07:34 +0000 (19:07 +0200)] 
sourceformat: split protos.h into more specific headers, change many functions' likage to c++.

12 years agoMerged from trunk
Francesco Chemolli [Wed, 3 Oct 2012 14:29:52 +0000 (16:29 +0200)] 
Merged from trunk

12 years agoBug 3661: Segmentation fault when using more than 1 worker
Amos Jeffries [Wed, 3 Oct 2012 10:18:42 +0000 (22:18 +1200)] 
Bug 3661: Segmentation fault when using more than 1 worker

Previous change to Ipc::Mem::PageStack making variable arrays into
dynamically-allocated arrays added an allocate after use bug.

12 years agoMerged from trunk
Francesco Chemolli [Wed, 3 Oct 2012 07:34:10 +0000 (09:34 +0200)] 
Merged from trunk

12 years agoFix website config display of default settings
Amos Jeffries [Wed, 3 Oct 2012 00:44:13 +0000 (12:44 +1200)] 
Fix website config display of default settings

The website page cfgman builder script was omitted when adding the
DEFAULT_DOC parameter and making DEFAULT / DEFAULT_IF_NONE support
multi-line values.

12 years agoBug 3130: helpers are crashing too rapidly
Amos Jeffries [Tue, 2 Oct 2012 02:18:50 +0000 (14:18 +1200)] 
Bug 3130: helpers are crashing too rapidly

As discussed quite many months ago. This reduces the FATAL when helpers
crash/exit to a critical level ERROR have responded with useful reply to
at least one lookup.

The result is that Squid can now cope with helpers written in languages
which cannot loop infinitely. For example; PHP helpers often exit after
a timeout, broken scripts written to respond and exit immediately,
and helpers which encounter some permissions error and respond only with
"ERR" or "BH" results before aborting.

12 years agoPolish: de-duplicate helper statistics objects
Amos Jeffries [Tue, 2 Oct 2012 01:55:36 +0000 (13:55 +1200)] 
Polish: de-duplicate helper statistics objects

* Combine the stats structure on per-helper server classes. For more
  consistent statistic gathering.

* Add initStats() method to initialize statistics variables correctly.
  Previously only done for some counters on stateless helper objects.

* Add missing accounting of pending lookups in stateful helper code.

* Add counter for replies received from the helper.

* Add reporting of replies received back from each helper.

There are no logic or decision making logics affected by these changes.
The new increment/decrement and stats are purely affecting statistical
report outputs.

FUTURE TODO:
* replace the 'busy' flag on stateful helpers with pending>0 check
  as used by stateless helpers to indicate queue count.

12 years agoCleanup: remove a wrong TODO
Amos Jeffries [Mon, 1 Oct 2012 22:47:10 +0000 (10:47 +1200)] 
Cleanup: remove a wrong TODO

Squid may need to use the hop-by-hop response headers. This is too early
to be removing them. the right place is in client-side before delivering
to the client. Squid already contains code to do it there.

12 years agoSmall memory leak in src ACL parse
Amos Jeffries [Thu, 27 Sep 2012 10:10:21 +0000 (04:10 -0600)] 
Small memory leak in src ACL parse

Fixes one minor memory leak when IPv6 is disabled and parsing an IPv6
address. For example the default localhost ACL ::1 value.

Caught by Valgrind:

==26647== 384 bytes in 4 blocks are definitely lost in loss record 1,132 of 1,726
==26647==    at 0x4C25A28: calloc (vg_replace_malloc.c:467)
==26647==    by 0x65B441: xcalloc (xalloc.cc:75)
==26647==    by 0x657B99: MemPoolMalloc::allocate() (MemPoolMalloc.cc:62)
==26647==    by 0x5A95B1: acl_ip_data::FactoryParse(char const*) (Ip.h:66)
==26647==    by 0x5AA8BD: ACLIP::parse() (Ip.cc:523)
==26647==    by 0x5E0A80: ACL::ParseAclLine(ConfigParser&, ACL**) (Acl.cc:174)
==26647==    by 0x4B0C0F: parse_line(char*) (cache_cf.cc:1252)
==26647==    by 0x4B2076: parseOneConfigFile(char const*, unsigned int) (cache_cf.cc:518)
==26647==    by 0x4B29D0: parseConfigFile(char const*) (cache_cf.cc:558)
==26647==    by 0x546B81: SquidMain(int, char**) (main.cc:1372)
==26647==    by 0x547445: main (main.cc:1215)

12 years agoRemoved duplicate empty lines
Francesco Chemolli [Tue, 25 Sep 2012 16:38:36 +0000 (18:38 +0200)] 
Removed duplicate empty lines

12 years agorenamed acl_size_t to AclSizeLimit, moved to own header in acl/
Francesco Chemolli [Tue, 25 Sep 2012 15:36:18 +0000 (17:36 +0200)] 
renamed acl_size_t to AclSizeLimit, moved to own header in acl/
Moved dwrite_q to disk.h, and _fde_disk to fde.h
Got rid of structs.h

12 years agoBug fix: The ACLFilledChecklist::fd set with wrong fd for Config.ssl_client.cert_erro...
Christos Tsantilas [Tue, 25 Sep 2012 14:51:20 +0000 (17:51 +0300)] 
Bug fix: The ACLFilledChecklist::fd set with wrong fd for Config.ssl_client.cert_error acl list

The Config.ssl_client.cert_error uses the server-side connection fd instead of
the client-side connection fd.

12 years agoSslBump stuck after error
Christos Tsantilas [Tue, 25 Sep 2012 13:58:44 +0000 (16:58 +0300)] 
SslBump stuck after error

When bump-server-first code in trunk encounters a certificate validation error,
the corresponding CONNECT transaction gets stuck.

12 years agoPolish the ACLFilledChecklist::fd related documentation
Christos Tsantilas [Tue, 25 Sep 2012 13:49:25 +0000 (16:49 +0300)] 
Polish the ACLFilledChecklist::fd related documentation

12 years agoUndo/uncommit the r12328 patch
Christos Tsantilas [Tue, 25 Sep 2012 13:46:57 +0000 (16:46 +0300)] 
Undo/uncommit the r12328 patch

The documentation is wrong and should applied as separate patches

12 years agoPolish the ACLFilledChecklist::fd related documentation
Christos Tsantilas [Tue, 25 Sep 2012 13:42:54 +0000 (16:42 +0300)] 
Polish the ACLFilledChecklist::fd related documentation

12 years agoMerged from trunk
Francesco Chemolli [Mon, 24 Sep 2012 19:34:52 +0000 (21:34 +0200)] 
Merged from trunk

12 years agomoved dread_ctrl to disk.h
Francesco Chemolli [Mon, 24 Sep 2012 19:27:10 +0000 (21:27 +0200)] 
moved dread_ctrl to disk.h

12 years agoMoved acl_tos and acl_nfmark to ip/qos/QosConfig.h
Francesco Chemolli [Mon, 24 Sep 2012 09:26:42 +0000 (11:26 +0200)] 
Moved acl_tos and acl_nfmark to ip/qos/QosConfig.h

12 years agoadded missing include
Francesco Chemolli [Sun, 23 Sep 2012 15:11:29 +0000 (17:11 +0200)] 
added missing include

12 years agoMoved sslproxy cert types to own header in ssl/
Francesco Chemolli [Sun, 23 Sep 2012 10:30:46 +0000 (12:30 +0200)] 
Moved sslproxy cert types to own header in ssl/
Added missing include in acl/FilledChecklist.h

12 years agoRemoved unused close_handler type and conn_close_pool
Francesco Chemolli [Sun, 23 Sep 2012 09:41:29 +0000 (11:41 +0200)] 
Removed unused close_handler type and conn_close_pool

12 years agoPrep for 3.1.21
Amos Jeffries [Sun, 23 Sep 2012 09:14:53 +0000 (03:14 -0600)] 
Prep for 3.1.21

12 years agoRemoved now-useless inclusions of structs.h in various places.
Francesco Chemolli [Sun, 23 Sep 2012 09:04:21 +0000 (11:04 +0200)] 
Removed now-useless inclusions of structs.h in various places.

12 years agoRemved cruft from structs.h
Francesco Chemolli [Sat, 22 Sep 2012 20:07:31 +0000 (22:07 +0200)] 
Remved cruft from structs.h

12 years agoMake IPC base path absolute in testRock
Francesco Chemolli [Sat, 22 Sep 2012 18:46:52 +0000 (20:46 +0200)] 
Make IPC base path absolute in testRock

12 years agorenamed snmp_request_t to SnmpRequest and moved to own header
Francesco Chemolli [Sat, 22 Sep 2012 15:07:57 +0000 (17:07 +0200)] 
renamed snmp_request_t to SnmpRequest and moved to own header

12 years agorenamed http_state_flags to HttpStateFlags and moved to own header file.
Francesco Chemolli [Sat, 22 Sep 2012 14:21:59 +0000 (16:21 +0200)] 
renamed http_state_flags to HttpStateFlags and moved to own header file.
Changed all boolean flags to bool type.

12 years agorenamed domain_ping to CachePeerDomainList and moved to own header file
Francesco Chemolli [Sat, 22 Sep 2012 13:26:23 +0000 (15:26 +0200)] 
renamed domain_ping to CachePeerDomainList and moved to own header file

12 years agoRenamed neighbor_type to NeighborTypeDomainList and moved to own header.
Francesco Chemolli [Sat, 22 Sep 2012 13:04:26 +0000 (15:04 +0200)] 
Renamed neighbor_type to NeighborTypeDomainList and moved to own header.

12 years agoMerged from trunk
Francesco Chemolli [Sat, 22 Sep 2012 10:56:48 +0000 (12:56 +0200)] 
Merged from trunk

12 years agoRelease Notes: document cache_store_log changes in 3.2
Amos Jeffries [Sat, 22 Sep 2012 07:17:28 +0000 (19:17 +1200)] 
Release Notes: document cache_store_log changes in 3.2

Store log uses logFile*() infrastructure and was caught in the access.log
change upgrades (in a good way). But was not documented.

12 years agoRegression fix: Handle dstdomain duplicates and overlapping names better
Amos Jeffries [Sat, 22 Sep 2012 06:39:55 +0000 (18:39 +1200)] 
Regression fix: Handle dstdomain duplicates and overlapping names better

Since 3.2 changes to dstdomain overlap detection teh case of duplicate
wildcards has become a fatal error needlessly.

This silently ignores all exact duplicates, even if they are wildcards.

Also, adjust the message display to always display the longer of the
domains first. Since we are dealing with sub-domains it is the most
reliable indicator of which should be removed to safely fix the detected
issue.

12 years agoBug 3648: Polish String class files
Reinhard Posmyk [Sat, 22 Sep 2012 01:28:35 +0000 (13:28 +1200)] 
Bug 3648: Polish String class files

Fix to correct function parameter const correctness.

Also polishes whitespace to match Squid coding guidelines.

12 years agoRemoved "extern" and SQUIDCEXTERN keyword from regular functions (they have extern...
Francesco Chemolli [Fri, 21 Sep 2012 14:57:30 +0000 (16:57 +0200)] 
Removed "extern" and SQUIDCEXTERN keyword from regular functions (they have extern linkage by default)

12 years agoAdded some class documentation.
Francesco Chemolli [Fri, 21 Sep 2012 13:27:44 +0000 (15:27 +0200)] 
Added some class documentation.
Removed explicit "extern" markers from some functions