]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
14 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Tue, 10 Aug 2010 02:53:15 +0000 (20:53 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Documentation: Clarify sslpassword_program arguments

14 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Tue, 10 Aug 2010 02:51:49 +0000 (20:51 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
HTTP/1.1 Compliance: Improved HTTP Range header field validation.

1) Improved HttpHdrRangeSpec::parseInit() to parse syntactically valid
range specs:

  * Suffix ranges with 0 length (i.e. -0) are syntactically valid.

  * Check that last-byte-pos is greater than or equal to first-byte-pos.

After the change, HttpHdrRangeSpec::parseInit() successfully parses suffix
ranges with 0 length. They were rejected before. RFC 2616 section 14.35.1 says
such range specs are syntactically valid but unsatisfiable. Thus, we should
ignore the range spec itself, but not the whole range header. These range
specs will be rejected later, during canonization.

2) In HttpHdrRangeSpec::parseInit(), ignore the whole range header if one of
range specs is syntactically invalid (i.e. range spec parsing fails).

Co-Advisor test case: test_clause/rfc2616/invalidRange

15 years ago3.2.0.1 SQUID_3_2_0_1
Amos Jeffries [Mon, 2 Aug 2010 14:09:29 +0000 (08:09 -0600)] 
3.2.0.1

15 years agoPrep for 3.2.0.1
Amos Jeffries [Mon, 2 Aug 2010 14:03:56 +0000 (02:03 +1200)] 
Prep for 3.2.0.1

15 years agoFix distclean for wbinfo group ACL helper
Amos Jeffries [Mon, 2 Aug 2010 13:59:43 +0000 (07:59 -0600)] 
Fix distclean for wbinfo group ACL helper

15 years agoPrep for 3.1.6
Amos Jeffries [Sun, 1 Aug 2010 13:44:35 +0000 (07:44 -0600)] 
Prep for 3.1.6

15 years agoFix const-correctness on helper debug()
Amos Jeffries [Sun, 1 Aug 2010 12:56:21 +0000 (06:56 -0600)] 
Fix const-correctness on helper debug()

15 years agoAuthor: Andrew Beverley <andy@andybev.com>
Amos Jeffries [Sun, 1 Aug 2010 12:55:40 +0000 (06:55 -0600)] 
Author: Andrew Beverley <andy@andybev.com>
Fix missing test command when testing OS

15 years agoBasic split-stack functionality
Amos Jeffries [Sun, 1 Aug 2010 12:54:47 +0000 (06:54 -0600)] 
Basic split-stack functionality

Enable split-stack detection by default.

There is now enough split-stack support to enable accepting IPv6 client
connections on systems with separate IPv4/IPv6 stacks. Also some limited
server connection capabilities (see tcp_outgoing_addr config hacks).

SNMP, ICP, HTCP listeners and outbound connections currently default to
IPv4-only on these systems to retain backward-compatibility.
But may be explicity configured to IPv6-only. There is no support as yet
for dual-protocol behaviour in the sockets of these three protocols.

15 years agoHack: define top_build_prefix for old autotools
Amos Jeffries [Sun, 1 Aug 2010 12:53:19 +0000 (06:53 -0600)] 
Hack: define top_build_prefix for old autotools

This hack was removed during the libtool 2.2 upgrade.

The issue shows up as bundle builds failing to link libltdl/libltdlc.la
when they should in fact be linking ../libltdl/libltdlc.la in src/Makefile

It is caused by the macros of libtool 2.2 assuming the presence of
top_build_prefix but since autoconf 2.62 that was replaced with
ac_top_build_prefix and is no longer automatically defined in Makefile's.

Some distros also seem to have back-ported the removal of top_build_prefix
into their old autoconf causing macro version tests to fail.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 1 Aug 2010 12:51:27 +0000 (06:51 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2975: chunked requests not supported after regular ones

Clean dechunking state to avoid a 501 response to a chunked request
following a non-chunked request on a persistent connection.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 1 Aug 2010 12:50:32 +0000 (06:50 -0600)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Compliance: Forward multiple unknown HTTP Cache-Control directives.

httpHdrCcParseInit() ignored all unknown Cache-Control directives
except for the first one because the (type != CC_OTHER) check
applied to the debugging statement only.

Co-Advisor test case: test_case/rfc2616/endHdr-fwd-set-Cache-Control-toSrv

15 years agoFix fake NTLM auth symbol clash on ERR/OK macros
Amos Jeffries [Sun, 1 Aug 2010 12:49:03 +0000 (06:49 -0600)] 
Fix fake NTLM auth symbol clash on ERR/OK macros

15 years agoRemove snapshot scripts from 3.2 branch
Automatic source maintenance [Fri, 30 Jul 2010 13:09:28 +0000 (07:09 -0600)] 
Remove snapshot scripts from 3.2 branch

15 years agoTry add top_builddir for possible use by libtool linking on some OS
Amos Jeffries [Fri, 30 Jul 2010 08:43:53 +0000 (02:43 -0600)] 
Try add top_builddir for possible use by libtool linking on some OS

15 years agoLibtool now requires local include paths for LTDL
Amos Jeffries [Fri, 30 Jul 2010 05:39:03 +0000 (23:39 -0600)] 
Libtool now requires local include paths for LTDL

15 years agoBug 2994: pt 1: Open *_port directives correctly in IPv4-only mode.
Amos Jeffries [Fri, 30 Jul 2010 04:03:19 +0000 (22:03 -0600)] 
Bug 2994: pt 1: Open *_port directives correctly in IPv4-only mode.

Was opening snmp_port, icp_port, htcp_port under the v4-mapping assumption.
This forces the ports both listening and outgoing to IPv4-only unless
v4-mapping is actually available in the system.

15 years agoFix use of uninitialized memory in session helper
Amos Jeffries [Thu, 29 Jul 2010 14:23:35 +0000 (08:23 -0600)] 
Fix use of uninitialized memory in session helper

15 years agoUpdate helper debug macro for safe use inside unwrapped if...else statements
Amos Jeffries [Thu, 29 Jul 2010 13:06:05 +0000 (07:06 -0600)] 
Update helper debug macro for safe use inside unwrapped if...else statements

15 years agoMake memory_pools_limit an int64_t to handle signed "none" values.
Amos Jeffries [Thu, 29 Jul 2010 13:04:44 +0000 (07:04 -0600)] 
Make memory_pools_limit an int64_t to handle signed "none" values.

15 years agoFix build warnings in libntlm
Amos Jeffries [Thu, 29 Jul 2010 13:01:51 +0000 (07:01 -0600)] 
Fix build warnings in libntlm

15 years agoAuthor: Various Translators
Amos Jeffries [Thu, 29 Jul 2010 00:01:41 +0000 (12:01 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoBug fix: 32bit integer used in HttpStateData to store the bytes received from next hop
Christos Tsantilas [Wed, 28 Jul 2010 18:04:45 +0000 (21:04 +0300)] 
Bug fix: 32bit integer used in HttpStateData to store the bytes received from next hop

A simple integer used to store the bytes received from the next hop
(http server of proxy), which my cause problems when receives huge
http objects on 32bit systems.

15 years agoBug fix: The bytes sent/received to/from the ICAP server may not logged correctly...
Christos Tsantilas [Wed, 28 Jul 2010 17:51:26 +0000 (20:51 +0300)] 
Bug fix: The bytes sent/received to/from the ICAP server may not logged correctly on 32bit systems

A simple long int (doint/outint) used to log bytes sent/received to/from
the ICAP server, ICAP requests with very large http objects will not
logged correctly. Use int64_t (dooff/outoff) instead

15 years agoAuthor: Matthias Pitzl <silamael@coronamundi.de>
Amos Jeffries [Wed, 28 Jul 2010 12:39:35 +0000 (06:39 -0600)] 
Author: Matthias Pitzl <silamael@coronamundi.de>
Bug 2991: Wrong parameters to fcntl() in commSetCloseOnExec()

15 years agoBug 2988: Updated documentation of TCP keepalive
Amos Jeffries [Wed, 28 Jul 2010 11:57:06 +0000 (05:57 -0600)] 
Bug 2988: Updated documentation of TCP keepalive

15 years agoAdd a missing break. Currently does not have any effect but it may
Christos Tsantilas [Wed, 28 Jul 2010 07:40:06 +0000 (10:40 +0300)] 
Add a missing break. Currently does not have any effect but it may
cause problems in the feature.

15 years agoPrep for 3.1.5.1
Amos Jeffries [Wed, 28 Jul 2010 06:41:10 +0000 (18:41 +1200)] 
Prep for 3.1.5.1

15 years agoBug 2780: assertion failed: store_swapin.cc:47: e->mem_status == NOT_IN_MEMORY
Amos Jeffries [Wed, 28 Jul 2010 02:27:36 +0000 (20:27 -0600)] 
Bug 2780: assertion failed: store_swapin.cc:47: e->mem_status == NOT_IN_MEMORY

15 years agoAuthor: Various Translators
Amos Jeffries [Wed, 28 Jul 2010 00:00:51 +0000 (12:00 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoAuthor: Various Translators
Amos Jeffries [Tue, 27 Jul 2010 12:00:49 +0000 (00:00 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoAuthor: Various Translators
Amos Jeffries [Mon, 26 Jul 2010 12:00:47 +0000 (00:00 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoError template adjustments
Amos Jeffries [Mon, 26 Jul 2010 09:14:48 +0000 (21:14 +1200)] 
Error template adjustments

15 years agoBug 2986: test-builds.sh letting bugs through
Amos Jeffries [Sun, 25 Jul 2010 21:49:51 +0000 (15:49 -0600)] 
Bug 2986: test-builds.sh letting bugs through

15 years agoPrevent invalid memory access in SNMP
Amos Jeffries [Sun, 25 Jul 2010 21:19:20 +0000 (15:19 -0600)] 
Prevent invalid memory access in SNMP

15 years agoIPv4-only mode fixes on rev10662
Amos Jeffries [Sun, 25 Jul 2010 13:49:07 +0000 (01:49 +1200)] 
IPv4-only mode fixes on rev10662

* get IP probe fro v4-mapping right.

* only open http_port on IPv4 when IPv6 is disabled but available.

15 years agoReplace most USE_IPV6 with run-time support probing
Amos Jeffries [Sun, 25 Jul 2010 08:10:12 +0000 (02:10 -0600)] 
Replace most USE_IPV6 with run-time support probing

This unifies the code built for IPv4-only, dual-stack and split-stack.

 * --disable-ipv6 option remains, however it now prevents the run-time probe

 * Probing previously done in ./configure at build time is now merged and
performed run-time on every startup. IPv6 is enabled or disabled based on
the underlying OS support for sockets and setsockopt operations required.

 * Parsing and other operations which can be performed without specific IPv6
connectivity are enabled.

 * Some DNS logic alterations have had to be made to merge the split-stack
DNS and leverage it for IPv4-only mode. Otherwise the logics are unchanged
from previous dual-stack builds which have been well tested.

15 years agoBootstrapped
Automatic source maintenance [Sat, 24 Jul 2010 00:11:03 +0000 (18:11 -0600)] 
Bootstrapped

15 years agoFixed builtest.sh shell script brokenness on non-linux platforms.
Francesco Chemolli [Fri, 23 Jul 2010 13:10:05 +0000 (15:10 +0200)] 
Fixed builtest.sh shell script brokenness on non-linux platforms.

15 years agorecommit
Francesco Chemolli [Fri, 23 Jul 2010 13:07:20 +0000 (15:07 +0200)] 
recommit

15 years agoFixed builtest.sh shell script brokenness on non-linux platforms.
Francesco Chemolli [Fri, 23 Jul 2010 12:46:14 +0000 (14:46 +0200)] 
Fixed builtest.sh shell script brokenness on non-linux platforms.

15 years agoFix omitted part of rev10654
Amos Jeffries [Fri, 23 Jul 2010 05:04:43 +0000 (23:04 -0600)] 
Fix omitted part of rev10654

15 years agoFixed comm.cc:377: "fd_table[fd].halfClosedReader != NULL" assertion
Alex Rousskov [Thu, 22 Jul 2010 14:25:36 +0000 (08:25 -0600)] 
Fixed comm.cc:377: "fd_table[fd].halfClosedReader != NULL" assertion

Client side must stop reading when switching to a tunnel mode. The old code
called low-level commSetSelect to stop reading, but that left Comm tables in
an inconsistent state, with the client side reader callback still scheduled.
Squid would assert when the tunnel called comm_read with its own callback.

The bug is unrelated to half-closed connections despite halfClosedReader
mentioned in the assertion text. The assertion means "no more than one active
reader per FD".

15 years agoImproved libtool kludge
Francesco Chemolli [Thu, 22 Jul 2010 13:24:45 +0000 (15:24 +0200)] 
Improved libtool kludge

15 years agoKludge: try to detect system acinclude path, to fix libtool brokenness.
Francesco Chemolli [Thu, 22 Jul 2010 11:23:03 +0000 (13:23 +0200)] 
Kludge: try to detect system acinclude path, to fix libtool brokenness.

15 years agoBootstrapped
Automatic source maintenance [Thu, 22 Jul 2010 00:11:11 +0000 (18:11 -0600)] 
Bootstrapped

15 years agoAuthor: Karl Benoit <karl.isatwork@gmail.com>
Amos Jeffries [Wed, 21 Jul 2010 11:38:11 +0000 (05:38 -0600)] 
Author: Karl Benoit <karl.isatwork@gmail.com>
Author: Amos Jeffries <squid3@treenet.co.nz>
Bug 2885: cf_gen and diskd missing symbols

15 years agoAuthor: isaac <isaacarsenal@gmail.com>
Amos Jeffries [Wed, 21 Jul 2010 06:18:25 +0000 (00:18 -0600)] 
Author: isaac <isaacarsenal@gmail.com>
Bug 2985: search scope for digest_ldap_auth didn't work

15 years agoTestBed: --with-valgrind-debug is not longer universally testable.
Amos Jeffries [Wed, 21 Jul 2010 02:40:18 +0000 (20:40 -0600)] 
TestBed: --with-valgrind-debug is not longer universally testable.

Will fail on some machines, so it cannot be in the master 02-maximus level.

15 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 21 Jul 2010 00:13:27 +0000 (18:13 -0600)] 
SourceFormat Enforcement

15 years agoAuthor: Chad E. Naugle <chad.naugle@travimp.com>
Amos Jeffries [Tue, 20 Jul 2010 14:16:00 +0000 (02:16 +1200)] 
Author: Chad E. Naugle <chad.naugle@travimp.com>
Bug 2905: eDirectory (8.7 & 8.8) IPv4/IPv6->Username external ACL helper

Original code import.

15 years agoPartial reverse of rev10645
Amos Jeffries [Tue, 20 Jul 2010 12:25:31 +0000 (00:25 +1200)] 
Partial reverse of rev10645

recursive option hit problems. Its not really needed anyway.

15 years agoBug 2963: --with-valgrind-debug failures ignored
Amos Jeffries [Tue, 20 Jul 2010 12:23:28 +0000 (00:23 +1200)] 
Bug 2963: --with-valgrind-debug failures ignored

Made to hard-fail if --with is used.

15 years agoMore AsyncJob rules based on squid-dev reviews:
Alex Rousskov [Mon, 19 Jul 2010 16:10:25 +0000 (10:10 -0600)] 
More AsyncJob rules based on squid-dev reviews:

- You must implement start() and doneAll() methods.
- In doneAll(), always call doneAll() of the parent.

15 years agoPolished job start documentation.
Alex Rousskov [Mon, 19 Jul 2010 16:04:11 +0000 (10:04 -0600)] 
Polished job start documentation.

15 years agoMake --disable-loadable-modules work again
Amos Jeffries [Mon, 19 Jul 2010 13:15:17 +0000 (07:15 -0600)] 
Make --disable-loadable-modules work again

15 years agoCorrection documentation of QoS disable-preserve-miss
Amos Jeffries [Mon, 19 Jul 2010 00:14:30 +0000 (18:14 -0600)] 
Correction documentation of QoS disable-preserve-miss

15 years agoAdded debugging scripts that work with detailed cache.log
Alex Rousskov [Fri, 16 Jul 2010 22:37:42 +0000 (16:37 -0600)] 
Added debugging scripts that work with detailed cache.log

  scripts/find-alive.pl: pinpoint objects that are still alive, to find leaks
  scripts/trace-job.pl: find cache.log lines that correspond to a given job
  scripts/trace-master.pl: trace jobs related to a single master transaction

The scripts require maintenance as the logging format changes, but
they often simplify debugging by extracting relevant information from
tons of poorly structured cache.log data.

15 years agoPolished AsyncJob documentation. Removed obsolete job call wrapping notes.
Alex Rousskov [Fri, 16 Jul 2010 17:07:07 +0000 (11:07 -0600)] 
Polished AsyncJob documentation. Removed obsolete job call wrapping notes.

Only the comments have been changed.

15 years agoAdded initial extended documentation for AsyncJob API.
Alex Rousskov [Fri, 16 Jul 2010 16:20:13 +0000 (10:20 -0600)] 
Added initial extended documentation for AsyncJob API.

Needs dox syntax check and polishing.

15 years agoUpdate libtool autoconf macros to libtool2 style
Henrik Nordstrom [Thu, 15 Jul 2010 15:13:23 +0000 (17:13 +0200)] 
Update libtool autoconf macros to libtool2 style

15 years agoRemove .so from SASL build checks
Amos Jeffries [Thu, 15 Jul 2010 01:36:28 +0000 (19:36 -0600)] 
Remove .so from SASL build checks

We definitely require the .a and .la files to build against SASL libraries.
The run-time .so is only relevant later.

15 years agoAuthor: Karl Benoit <karl.isatwork@gmail.com>
Amos Jeffries [Thu, 15 Jul 2010 01:35:14 +0000 (19:35 -0600)] 
Author: Karl Benoit <karl.isatwork@gmail.com>
Bug 2885: AIX support: c only c++ style comments test case

15 years agoBug 2885: AIX support: check libm for log()
Amos Jeffries [Thu, 15 Jul 2010 00:52:47 +0000 (18:52 -0600)] 
Bug 2885: AIX support: check libm for log()

15 years agoDocument BodyPipe.h
Amos Jeffries [Wed, 14 Jul 2010 13:40:40 +0000 (01:40 +1200)] 
Document BodyPipe.h

15 years agoMaintenance: reset working directory after snapshot sub-make.sh
Amos Jeffries [Wed, 14 Jul 2010 12:08:16 +0000 (00:08 +1200)] 
Maintenance: reset working directory after snapshot sub-make.sh

15 years agoBug 2651 fix: squid crashing with ident auth
Alex Rousskov [Wed, 14 Jul 2010 01:00:21 +0000 (19:00 -0600)] 
Bug 2651 fix: squid crashing with ident auth

Check whether the old-style (function-based) callback has the
function address to call. A writer may leave no "callback number".

15 years agoTypo in Joomla fix
Amos Jeffries [Tue, 13 Jul 2010 22:40:01 +0000 (10:40 +1200)] 
Typo in Joomla fix

15 years agoCorrect Joomla DB auth handling
Henrik Nordstrom [Tue, 13 Jul 2010 20:42:09 +0000 (22:42 +0200)] 
Correct Joomla DB auth handling

Found while reading the code. Original clearly could not have worked as
it split the password field using an uninitialized delimiter.

15 years agoAuthor: Milen Pankov <mail@milen.pankov.eu>
Henrik Nordstrom [Tue, 13 Jul 2010 20:23:02 +0000 (22:23 +0200)] 
Author: Milen Pankov <mail@milen.pankov.eu>
squid_db_auth support md5 encrypted passwords

--md5 option supporting unsalted MD5 password

15 years agoFixed memory leak related to retried requests.
Alex Rousskov [Tue, 13 Jul 2010 16:49:48 +0000 (10:49 -0600)] 
Fixed memory leak related to retried requests.

ErrorState object was not destroyed if the failed request to the origin
server or peer was retried.

15 years agoPrevent memory leaks when cloning Range requests.
Alex Rousskov [Tue, 13 Jul 2010 16:43:00 +0000 (10:43 -0600)] 
Prevent memory leaks when cloning Range requests.

HttpRequest::range field was set to a new HttpHdrRange object twice:
once in HttpRequest::clone() and once in HttpRequest::hdrCacheInit()
called from clone().

Polished HttpReply::clone() to make sure HttpReply::hdrCacheInit()
does not use uninitialized HttpReply::sline field and to prevent
benign double-initialization of HttpReply::keep_alive.

15 years agoFixed memory leaks related to Range requests.
Alex Rousskov [Tue, 13 Jul 2010 16:26:20 +0000 (10:26 -0600)] 
Fixed memory leaks related to Range requests.

HttpRequest::range field could be cleared without destroying HttpHdrRange
object in clientInterpretRequestHeaders().

The range field is essentially a cached value of the parsed Range header.
Managing the cache outside its owner object is a bad idea.

15 years agoSourceFormat Enforcement
Automatic source maintenance [Tue, 13 Jul 2010 00:12:55 +0000 (18:12 -0600)] 
SourceFormat Enforcement

15 years agoAuthor: Various Translators
Amos Jeffries [Mon, 12 Jul 2010 18:01:39 +0000 (06:01 +1200)] 
Author: Various Translators
Translations Update auto-save

15 years agoHelpers: cleanup wbinfo_group manual on distclean
Amos Jeffries [Mon, 12 Jul 2010 17:26:32 +0000 (05:26 +1200)] 
Helpers: cleanup wbinfo_group manual on distclean

15 years agoHelpers: Naming and C++ update for external ACL helpers
Amos Jeffries [Mon, 12 Jul 2010 14:45:17 +0000 (02:45 +1200)] 
Helpers: Naming and C++ update for external ACL helpers

 * Also adds the Fake auth helper for testing Basic authentication.
 * Also adds manual pages for most external ACL helpers

TODO: test for and fix any build issues on Windows.

15 years agoSourceFormat Enforcement
Automatic source maintenance [Fri, 9 Jul 2010 00:12:48 +0000 (18:12 -0600)] 
SourceFormat Enforcement

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Thu, 8 Jul 2010 12:45:31 +0000 (00:45 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
purge tool: making it work proper with current Squid versions

15 years agoAuthor: Jens-S. V�ckler <voeckler@rvs.uni-hannover.de>
Amos Jeffries [Thu, 8 Jul 2010 12:28:08 +0000 (00:28 +1200)] 
Author: Jens-S. V�ckler <voeckler@rvs.uni-hannover.de>
Import squid cache 'purge' tool

Just the original code import for crediting the original author.

TODO:
 - patch to fix build problems in modern systems
 - upgrade to cope with current cache_dir formats
 - bundle and distribute updated tool

15 years agoHelpers: unify auth helpers use of debug and HELPER_INPUT_BUFFER
Amos Jeffries [Thu, 8 Jul 2010 11:58:30 +0000 (23:58 +1200)] 
Helpers: unify auth helpers use of debug and HELPER_INPUT_BUFFER

15 years agoHelpers: upgrade digest helpers to C++
Amos Jeffries [Thu, 8 Jul 2010 11:01:47 +0000 (23:01 +1200)] 
Helpers: upgrade digest helpers to C++

15 years agoMaintenance: run webpage make from web directory
Amos Jeffries [Thu, 8 Jul 2010 06:49:20 +0000 (00:49 -0600)] 
Maintenance: run webpage make from web directory

15 years agoSMP: Use sys/uio.h for struct iovec
Amos Jeffries [Thu, 8 Jul 2010 06:28:49 +0000 (00:28 -0600)] 
SMP: Use sys/uio.h for struct iovec

15 years agoBootstrapped
Automatic source maintenance [Thu, 8 Jul 2010 00:11:20 +0000 (18:11 -0600)] 
Bootstrapped

15 years agoDefine MSG_NOSIGNAL if it is missing.
Alex Rousskov [Wed, 7 Jul 2010 17:39:21 +0000 (11:39 -0600)] 
Define MSG_NOSIGNAL if it is missing.

Solaris and possibly others do not provide this optional optimization.

15 years agoPolished KidName example to use a real Squid process name.
Alex Rousskov [Wed, 7 Jul 2010 16:45:24 +0000 (10:45 -0600)] 
Polished KidName example to use a real Squid process name.

15 years agoDo not use NAME_MAX because it is not portable.
Alex Rousskov [Wed, 7 Jul 2010 16:41:03 +0000 (10:41 -0600)] 
Do not use NAME_MAX because it is not portable.

15 years agoRe-defined preprocessor macro for better consistency.
Francesco Chemolli [Wed, 7 Jul 2010 15:48:48 +0000 (17:48 +0200)] 
Re-defined preprocessor macro for better consistency.

15 years agoIncreased consistency in configure.in quoting
Francesco Chemolli [Wed, 7 Jul 2010 13:05:17 +0000 (15:05 +0200)] 
Increased consistency in configure.in quoting
Fixed some compilation conditionals

15 years agoSMP: Kid depends on sys/wait.h
Amos Jeffries [Wed, 7 Jul 2010 12:44:44 +0000 (06:44 -0600)] 
SMP: Kid depends on sys/wait.h

15 years agoBootstrapped
Automatic source maintenance [Wed, 7 Jul 2010 04:15:41 +0000 (22:15 -0600)] 
Bootstrapped

15 years agoBootstrapped
Automatic source maintenance [Wed, 7 Jul 2010 03:47:14 +0000 (21:47 -0600)] 
Bootstrapped

15 years agoMoved KidIdentifier to globals to make pinger happy.
Alex Rousskov [Wed, 7 Jul 2010 03:17:47 +0000 (21:17 -0600)] 
Moved KidIdentifier to globals to make pinger happy.

Pinger and possibly other optional externals require KidIdentifier via
debugs(). Instead of making KidIdentifier global, we could add a "plugin" API
to add program-dependent stuff to debugs() and friends, but we should not add
that kind of complexity unless really necessary. We could also link pinger
with libipc.la but that will probably cause more problems with IPC
dependencies.

15 years agoSourceFormat Enforcement
Automatic source maintenance [Wed, 7 Jul 2010 03:03:26 +0000 (21:03 -0600)] 
SourceFormat Enforcement

15 years agoMaintenance: wrap all snapshot script variables
Amos Jeffries [Wed, 7 Jul 2010 03:00:05 +0000 (21:00 -0600)] 
Maintenance: wrap all snapshot script variables

15 years agoSMP: updated release notes
Amos Jeffries [Wed, 7 Jul 2010 02:34:15 +0000 (20:34 -0600)] 
SMP: updated release notes

15 years agoSMP support, part 1: Essential non-caching functionality.
Alex Rousskov [Wed, 7 Jul 2010 00:45:34 +0000 (18:45 -0600)] 
SMP support, part 1: Essential non-caching functionality.

Added workers squid.conf option to specify how many main Squid
processes to fork and maintain. Zero means old no-daemon mode.
One means the old non-SMP mode.

Added support for process_name and process_number macros and
if-statement conditionals in squid.conf. Search for .pre changes for
documented details. These features allow the admin to configure each
worker process differently if needed.

Support multiple workers listening on the same HTTP[S] port (port
sharing). This allows multiple workers to split the load without any
special rules.

Support or prohibit port sharing for WCCP, DNS, ICP, HTCP, SNMP, and
Ident protocols, depending on protocol-specific restrictions. Sharing is
implemented by registering listening socket descriptors with the
Coordinator process and obtaining them from the Coordinator as needed.
Here are protocol-specific notes:

   WCCP: Restricted to the Coordinator process due to how WCCP works.
   Workers do not need access to the WCCP code.

   DNS: Done by each worker with no sharing. Fixed source ports not
   supported unless each worker is given its own outgoing address
   because we do not want to match outgoing queries and incoming
   responses across processes.

   SNMP: Workers share incoming and outgoing sockets.

   ICP and HTCP _clients_: Cannot be supported in SMP environment
   unless each process has its own address (i.e., unique IP address
   and/or unique [ICP] port) because we do not want to match outgoing
   queries and incoming responses across processes.

   ICP and HTCP _servers_: share listening sockets.

   Ident clients do not need to share sockets because they use
   unique ports.

Support management signals (squid -k ...) in SMP mode, acting as a
single Squid instance.

Refork dying workers, similar to how we reforked dying process in
non-SMP daemon mode.

Merged from lp smp branch r10306.

15 years agoDo not stop testheaders.sh on the first error, to be compatible with
Alex Rousskov [Wed, 7 Jul 2010 00:22:37 +0000 (18:22 -0600)] 
Do not stop testheaders.sh on the first error, to be compatible with
"make -k check".

If testheaders.sh stops on the first error, it becomes very difficult to
test your changes with "make check" when somebody else broke some other
code or when the checks reach src/cf_parser.h and fail.

TODO: stop on the first error unless running under "make -k check".

15 years agoDo not stop accepting just because we got COMM_NOMESSAGE.
Alex Rousskov [Wed, 7 Jul 2010 00:08:23 +0000 (18:08 -0600)] 
Do not stop accepting just because we got COMM_NOMESSAGE.

Do not dereference a possibly NULL callback pointer.