]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 8 Mar 2009 13:26:07 +0000 (02:26 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
SourceLayout: adaptation/{icap,ecap}, take 1 with tweaks

Moved src/ICAP into src/adaptation/icap.
Moved src/eCAP into src/adaptation/ecap.

Renamed ICAP source files from ICAPFoo.{cc,h} to Foo.{cc,h}.

Placed ICAP names into Adaptation::Icap namespace, renaming ICAPFoo to
Adaptation::Icap::Foo.

Moved Ecap namespace into Adaptation namespace.

15 years agoFix several issues in translation uncovered by further testing.
Amos Jeffries [Sun, 8 Mar 2009 13:05:01 +0000 (02:05 +1300)] 
Fix several issues in translation uncovered by further testing.

15 years agoAuthor: Various Translators
Amos Jeffries [Sun, 8 Mar 2009 12:46:32 +0000 (01:46 +1300)] 
Author: Various Translators
Languages: Chinese, Greek, Persian, Uzbek and some Updates

Adds initial support for RTL languages with Persian as the first.

15 years agoAuthor: Various
Amos Jeffries [Sun, 8 Mar 2009 12:27:41 +0000 (01:27 +1300)] 
Author: Various
TestBed: Several capability additions and fixes

Henrik Nordstrom:
  Allow out-of-tree builds and separate .opts files

Francesco Chemolli:
  Add parallel make capability under Linux

Amos Jeffries:
 Several fixes. Better information reporting

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 8 Mar 2009 11:46:19 +0000 (00:46 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
SourceLayout: src/base, take 0 with tweaks

Added src/base directory for fundamental, commonly-used code pieces that are
not large enough to warrant their own directories. Currently base/ contains
the beginning of AsyncCalls hierarchy, which may eventually get its own
directory.

Removed src/ip from the top-level SUBDIRS list. Made cf_gen compile without
libip.

Started building makefile includes, to be used in subdir makefiles:
src/Common.am and src/TestHeaders.am.

15 years agoSourceLayout: setup libcompat.la for portability primitives
Amos Jeffries [Tue, 3 Mar 2009 02:52:23 +0000 (15:52 +1300)] 
SourceLayout: setup libcompat.la for portability primitives

This library forms an underlayer which intends to be seamless for the rest
of Squid and the various OS on which it runs.

For code to be eligible for inclusion at this lowest layer it must be
emulating or wrapping a piece of OS-provided API for use on other OS
where it is not provided.

Shared code which is unique to Squid is not portability.

API mappings which are OS-specific are all defined for their particular
OS in the os/* files.

API mappings which are provided by multiple OS or support libraries
are mapped in compat/*

Emulators are acceptable, though the aim should be to inline or template
most of the code so only .h are really needed.

15 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org> SQUID_3_1_0_6
Amos Jeffries [Mon, 2 Mar 2009 10:10:46 +0000 (23:10 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed String search

15 years agoRegression Bug 2608: Build broken by Linux basename() implementation.
Amos Jeffries [Mon, 2 Mar 2009 03:49:21 +0000 (16:49 +1300)] 
Regression Bug 2608: Build broken by Linux basename() implementation.

15 years ago3.1.0.6
Amos Jeffries [Sun, 1 Mar 2009 11:20:33 +0000 (04:20 -0700)] 
3.1.0.6

15 years agobasename requires libgen.h
Amos Jeffries [Sun, 1 Mar 2009 11:15:17 +0000 (00:15 +1300)] 
basename requires libgen.h

15 years agoPrep for 3.1.0.6
Amos Jeffries [Sun, 1 Mar 2009 09:45:13 +0000 (22:45 +1300)] 
Prep for 3.1.0.6

15 years agoSync ChangeLog and ReleaseNotes
Amos Jeffries [Sun, 1 Mar 2009 04:40:28 +0000 (17:40 +1300)] 
Sync ChangeLog and ReleaseNotes

15 years agoPromote byte-units parse message to a full warning message.
Amos Jeffries [Sun, 1 Mar 2009 04:00:22 +0000 (17:00 +1300)] 
Promote byte-units parse message to a full warning message.

This is very important to the parser and some configuration settings.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 1 Mar 2009 03:58:12 +0000 (16:58 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Fixed "make distuninstallcheck" by removing installed configuration files

Only if they are identical to the installed default configuration files.

Added scripts/remove-cfg.sh to do the safe removal because we need that
functionality in many Makefiles.

Made installed mime.conf removal safe. We were removing it without checking
for modifications.

Added commands to remove the following installed default configuration
files: cachemgr.conf.default and msntauth.conf.default.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sun, 1 Mar 2009 03:55:17 +0000 (16:55 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Fix missing documentation for auth_param utf8 translation feature.

Missed out of original Squid-3 patch.

15 years agoImprove documentation of vary_ignore_expire
Amos Jeffries [Sun, 1 Mar 2009 03:53:36 +0000 (16:53 +1300)] 
Improve documentation of vary_ignore_expire

15 years agoAdd MYNAME macro for use in debugs
Amos Jeffries [Sun, 1 Mar 2009 03:50:49 +0000 (16:50 +1300)] 
Add MYNAME macro for use in debugs

Also, add basename() to HERE macro for cleaner debugs.

TODO: determine what OS and compilers are missing __PRETTY_FUNCTION__
      and define a good alternative for them.

15 years agoChristos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sun, 1 Mar 2009 03:32:39 +0000 (16:32 +1300)] 
Christos Tsantilas <chtsanti@users.sourceforge.net>
Regression revert r9426: Bug 2586: Memory leaks on reconfigure

The patch is not correct. Some of the objects freed here can be in use
during reconfigure.

15 years agoCorrect debugs output from tunnel comm error
Amos Jeffries [Sun, 1 Mar 2009 03:28:45 +0000 (16:28 +1300)] 
Correct debugs output from tunnel comm error

15 years agoAuthor: Mark Nottingham <mnot@pobox.com>
Amos Jeffries [Sun, 1 Mar 2009 03:25:23 +0000 (16:25 +1300)] 
Author: Mark Nottingham <mnot@pobox.com>
Bug 2599: Idempotent start

As discussed on squid-dev, Squid shouldn't return a shell error when:
  - starting squid, if it's already running
  - stopping squid, if it isn't running
This is to make writing scripts that control squid easier.

Note that it should still notify the user, and should not affect other
operations (e.g., kill, rotate, parse).

15 years agoMake broken_posts feature is an HTTP violation.
Amos Jeffries [Sun, 1 Mar 2009 03:19:24 +0000 (16:19 +1300)] 
Make broken_posts feature is an HTTP violation.

broken_posts control when enabled is committing an RFC2616 violation.

This patch limits it's use to builds with explicit --enable-http-violations.

TODO: I think its complete, but there may be more code to limit out.

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sun, 1 Mar 2009 03:06:42 +0000 (16:06 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2591: adaptation_access does not work

An access checklist required for each service set, so we need only one
AccessRule object for each adaptation service set

This patch:
- When parses an adaptation_access line, checks if an AccessRule object exists
  for the service set and if yes append the access checklist to this object else
  creates a new AccessRule object for this service set

- The AccessRule constructor takes as argument now the reference service set
  name (groupId)

- The new Adaptation::FindRuleByGroupId method created. This method returns
  the AccessRule object for a service set using its name (groupId)

- When an AccessRule for a service group exist in AccessRules
  list do not add it again in the list.

- Fix adaptation service config parsing

15 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sun, 1 Mar 2009 02:57:49 +0000 (15:57 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
String NG : basic SquidString updates pt 2

  - finished the analysis of raw buffer exporting, divided among c-sting
  and raw-buf access clients
  - general sanitization
  - reversal of some wrongly-renamed variables and comments
  - implementation of SQUIDSTRINGPRINT and SQUIDSTRINGPH (placeholder) macros and
      psize() function for printf-style calls
  - implementation of, and migration to, String::size_type and String::npos
  - de-inlining of pos(), rpos(), find() and rfind() calls
  - implementation and use of a proper substr() call

15 years agoBug 2601: Hack. Convert IPv4 netmasks to CIDR in IPv6-enabled mode
Amos Jeffries [Sat, 28 Feb 2009 13:14:14 +0000 (02:14 +1300)] 
Bug 2601: Hack. Convert IPv4 netmasks to CIDR in IPv6-enabled mode

see bug 2601 for trace demonstrating the effect of masking an IPv6 address
with and IPv4 netmask intead of a CIDR mask.

This hack, locates what CIDR mask was _probably_ meant to be in its
native protocol format. Then resets the mask to that CIDR form.

This will completely crap out with a security fail-open if the admin is
playing mask tricks.  However, thats their fault, and we do warn loudly.

Also adds deugs for tracing ACLIP comparisons.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 28 Feb 2009 12:32:16 +0000 (01:32 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Correct parsing of syslog:... log files. Was destroying the configured parameters.

Forward-port from squid-2. Detected by GCC-4.4.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 28 Feb 2009 12:08:52 +0000 (01:08 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Support libtool2

15 years agoObsolete: dependency on nss_common.h and nss.h
Amos Jeffries [Wed, 18 Feb 2009 01:43:09 +0000 (14:43 +1300)] 
Obsolete: dependency on nss_common.h and nss.h

Squid-3 currently make no internal reference to any of its symbols.

Squid appears to build and run just fine despite this header being
detected as 'broken' during Squid build tests for some time.

15 years agoBug 2287: Send a 505 on requests with unsupported HTTP versions
Amos Jeffries [Wed, 18 Feb 2009 01:30:35 +0000 (14:30 +1300)] 
Bug 2287: Send a 505 on requests with unsupported HTTP versions

Squid currenty accepts requests with well-formed 0.9, 1.0, and 1.1 versions
and one special case of missing version (assumed to be 0.9 legacy requests)

All others including well-formed 0.x < 0.9 are now aborted with a
HTTP 1.1 compliant 505 Version Not Supported error.

15 years agoBug 419: Hop by Hop headers MUST NOT be forwarded
Amos Jeffries [Wed, 18 Feb 2009 01:19:56 +0000 (14:19 +1300)] 
Bug 419: Hop by Hop headers MUST NOT be forwarded

This attempt builds on Henriks re-work of the client-request to
server-request cloning done since the last attempt was made at closing
this bug.

Adds all RFC 2616 listed Hop-by-hop headers to the clone selection test
as 'ignore' cases unless otherwise handled already.

The test for whether they exist in Connection: is moved to the default
case as an inline. Which reduces the code a fair bit and prevents the
side case where a specially handled header gets ignored because the
client explicitly added it to Connection: when it did not have to.

This method sets up a background default of not passing the hop-by-hop
headers while allowing any code which explicitly sets or copies the
headers across to operate as before without interference.

15 years agoBug 2593: Compile errors on Solaris 10
Amos Jeffries [Tue, 17 Feb 2009 23:47:01 +0000 (12:47 +1300)] 
Bug 2593: Compile errors on Solaris 10

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Tue, 17 Feb 2009 23:27:13 +0000 (12:27 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Regression Fix: Bug 2586: adaptation memory leaks on reconfigure

The patch is wrong: on shutdown calls Adaptation::Config::DestroyConfig,
twice causing segmentation fault.

15 years agoParser should talk about auth_param not authparam
Amos Jeffries [Sun, 15 Feb 2009 13:14:37 +0000 (02:14 +1300)] 
Parser should talk about auth_param not authparam

15 years agoCleanup malloc stats display
Amos Jeffries [Sun, 15 Feb 2009 13:07:56 +0000 (02:07 +1300)] 
Cleanup malloc stats display

15 years agoMemory leak on PconnPools
Amos Jeffries [Sun, 15 Feb 2009 13:04:18 +0000 (02:04 +1300)] 
Memory leak on PconnPools

Need to free the Pconn hash table properly.
constructor/desctructor are both required.

15 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sun, 15 Feb 2009 13:01:35 +0000 (02:01 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Cleanups: Remove code handling K&R-style varargs.

It should be a safe enough bet that any C++ compiler can handle STDC-style varargs.
This patch removes all the (mostly spaghetti) code which used to handle K&R-style varargs calls.

15 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sun, 8 Feb 2009 10:09:43 +0000 (23:09 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
String NG : fixes initial merge, take 2

Compared to the retired first attempt it:
 - fixes the issues Tsantilas Christos found out about
 - implements String::find
 - some more users analyzed and fixed.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sun, 8 Feb 2009 08:15:51 +0000 (21:15 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Support HTTP/0.9 in accelerator mode

HTTP/0.9 requests do not have a HTTP header, fruitless to try to parse
a non-existing header.

Also send the right error page if header parsing fails (ERR_INVALID_REQ, not _URL)

15 years agoBug 2588: coredump in rDNS lookup
Amos Jeffries [Sun, 8 Feb 2009 08:13:49 +0000 (21:13 +1300)] 
Bug 2588: coredump in rDNS lookup

Handle rDNS of invalid IP gracefully.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sun, 8 Feb 2009 08:06:19 +0000 (21:06 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
external_acl_type %<{ and %USER_CERT_ / %CA_CERT_ parsing brokenness

The parsing of external_acl_type formats was sligtly broken, destroying
%<{ (request header) if SSL was enabled and never able to parse %USER_CERT_
or %CA_CERT_..

Also clarified request/reply header syntax slightly

15 years agoBug 2526: pt 2: default ALLOW when no list specified.
Amos Jeffries [Sun, 8 Feb 2009 06:32:54 +0000 (19:32 +1300)] 
Bug 2526: pt 2: default ALLOW when no list specified.

Fallout from audit of access control checks.
 - Some got sensible defaults added
 - many got slightly more optimized defaults
 - documented the ACLChecklist interface and some API cleanups

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sun, 8 Feb 2009 06:21:50 +0000 (19:21 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2586: adaptation memory leaks on reconfigure

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sat, 7 Feb 2009 02:40:32 +0000 (15:40 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2586: Memory leaks on reconfigure

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 7 Feb 2009 02:15:30 +0000 (15:15 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Corret squidclient HTTP/0.9 support

Sends no headers with HTTP/0.9 requests.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 7 Feb 2009 02:02:39 +0000 (15:02 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Need to kick all deferred reads when a delaypool is updated, otherwise things queue up too long.

The chaos SHOULD be addressed by randomizing the order...
(not yet done. XXX comment addded in comm.cc)

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 7 Feb 2009 01:59:29 +0000 (14:59 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Only account for read ftp data in delay pools once, not twice.

The same data was accounted for twice in the delay pools resulting in
half of the expected rate.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 7 Feb 2009 01:57:47 +0000 (14:57 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Most configure test programs need stdlib.h for exit()

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 4 Feb 2009 12:03:01 +0000 (01:03 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Move -DDFAULT_SQUID_DATA_DIR & CONFIG_DIR from CFLAGS to DEFS

For some reason gcc on OpenBSD does not like having these in CFLAGS
when running configure. However works fine having them expanded in
src/Makefile DEFS variable just like -DDEFAULT_SQUID_CONFIG_FILE

15 years ago3.1.0.5 SQUID_3_1_0_5
Amos Jeffries [Tue, 3 Feb 2009 01:14:48 +0000 (18:14 -0700)] 
3.1.0.5

15 years agoPrep for 3.1.0.5
Amos Jeffries [Tue, 3 Feb 2009 01:11:37 +0000 (14:11 +1300)] 
Prep for 3.1.0.5

15 years agoFixup parsing of invalid version numbers
Amos Jeffries [Mon, 2 Feb 2009 12:59:34 +0000 (01:59 +1300)] 
Fixup parsing of invalid version numbers

15 years agoTypo in half_closed_clients documentation
Amos Jeffries [Mon, 2 Feb 2009 11:22:54 +0000 (00:22 +1300)] 
Typo in half_closed_clients documentation

15 years agoAdd --enable-x-accelerator-vary to TestBed
Amos Jeffries [Mon, 2 Feb 2009 11:20:28 +0000 (00:20 +1300)] 
Add --enable-x-accelerator-vary to TestBed

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Mon, 2 Feb 2009 11:16:21 +0000 (00:16 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2583: pure virtual method called

Inside the Adaptation::Initiator::announceInitiatorAbort method the check
x==NULL is not enough. We must also check if the x variable (of type Initiate)
is valid.

15 years agoHandle all unknown HTTP/* as HTTP/0.9
Amos Jeffries [Mon, 2 Feb 2009 11:13:07 +0000 (00:13 +1300)] 
Handle all unknown HTTP/* as HTTP/0.9

Assume that all requests are HTTP/0.9 unless explicity stated otherwise.
Drop assert on missing or overflow numeric cases.

15 years agoLanguage: Arabic
Amos Jeffries [Mon, 2 Feb 2009 11:07:04 +0000 (00:07 +1300)] 
Language: Arabic

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Mon, 2 Feb 2009 11:00:12 +0000 (00:00 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Fix assertion in comm_write from idnsSentQueryVC

The idnsSentQueryVC function called as AsyncCall. There is the possibility
when this function called the fd has start closing but not realy closed yet.
In this case this function will try to do a comm_write (idnsDoSendQueryVC
function) on sockect which closing and an assertion will triggered.
An extra test needed here to test if the socket closing and if yes just return.

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Mon, 2 Feb 2009 09:43:27 +0000 (22:43 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2524: Connection close failed on Partial Content

The method ClientSocketContext::socketState in the case of partial content
request when all the expected bytes received and the proxy_keepalive flag is
not set must return STREAM_UNPLANNED_COMPLETE to inform the caller that the
socket should closed.

15 years agoRollback r9407. Bad attribution
Amos Jeffries [Mon, 2 Feb 2009 07:09:28 +0000 (20:09 +1300)] 
Rollback r9407. Bad attribution

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Mon, 2 Feb 2009 07:06:00 +0000 (20:06 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2505: assertion failed: comm.cc:350: "!fd_table[fd].closing()" (comment #12,bug 2505)

This patch fixes the bug reported in comment #12 of bug 2505.
In the DeferredReadManager::kickARead method it is possible that the socket in
which refers a DeferredRead object has been closed, but the DeferredReadManager
is not informed yet because the related comm_close handler has not been
executed yet.
This patch checks the socket state and if it is closing just ignore the object.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Mon, 2 Feb 2009 07:01:19 +0000 (20:01 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug 2505: assertion failed: comm.cc:1727: "p == call"

Do not assert that the close handler being removed must be in
the list because comm_close removes all close handlers before any FD handlers
are fired.

There also seems to be an unrelated(?) problem: comm_remove_close_handler
does not really remove the callback. It only cancels the call. It should
probably remove the callback as well to prevent an unlikely situation where
the close handler list grows "too much".

15 years agoBug 2524: Connection close failed on Partial Content
Amos Jeffries [Mon, 2 Feb 2009 06:57:42 +0000 (19:57 +1300)] 
Bug 2524: Connection close failed on Partial Content

The method ClientSocketContext::socketState in the case of partial content
request when all the expected bytes received and the proxy_keepalive flag is
not set must return STREAM_UNPLANNED_COMPLETE to inform the caller that the
socket should closed.

15 years agoAuthor: Martin Huter <m.huter@phion.com>
Amos Jeffries [Mon, 2 Feb 2009 06:54:38 +0000 (19:54 +1300)] 
Author: Martin Huter <m.huter@phion.com>
Bug 2563: 99+% CPU Usage on FTP URL

15 years agoFix memory leak from logformat parsing
Amos Jeffries [Mon, 2 Feb 2009 06:27:00 +0000 (19:27 +1300)] 
Fix memory leak from logformat parsing

15 years agoDrop special localhost conversion.
Amos Jeffries [Mon, 2 Feb 2009 06:24:58 +0000 (19:24 +1300)] 
Drop special localhost conversion.

This was done as an experiment. It's now an RFC violation.
With no known uses it can easily die.

15 years agoMake configure use AC_MSG_NOTICE and AC_MSG_WARN
Amos Jeffries [Mon, 2 Feb 2009 06:22:58 +0000 (19:22 +1300)] 
Make configure use AC_MSG_NOTICE and AC_MSG_WARN

These macros are cleaner on the output than custom echo messages.
Makes quiet build truely quiet for the main squid configure.in.

TODO: sub-configures.

15 years agoMake configure tests use C++ instead of C
Amos Jeffries [Mon, 2 Feb 2009 06:16:06 +0000 (19:16 +1300)] 
Make configure tests use C++ instead of C

15 years agoBug 2571: pt 1: Add DNS failover to use IPv4-only listen when IPv6 fails.
Amos Jeffries [Mon, 2 Feb 2009 06:04:01 +0000 (19:04 +1300)] 
Bug 2571: pt 1: Add DNS failover to use IPv4-only listen when IPv6 fails.

TODO: there are other ports to check for this same behavior.

15 years agoadd content area for CSS of cfgman pages
Amos Jeffries [Sun, 1 Feb 2009 10:25:03 +0000 (23:25 +1300)] 
add content area for CSS of cfgman pages

15 years agoFix link error on ufsdump
Amos Jeffries [Sun, 1 Feb 2009 10:21:03 +0000 (23:21 +1300)] 
Fix link error on ufsdump

It appears that libmiscutil MUST be linked after all used local .la libs
or it's symbols may get dropped.

15 years agoAuthor: Adrian Chadd <adrian@creative.net.au>
Amos Jeffries [Sun, 1 Feb 2009 10:16:26 +0000 (23:16 +1300)] 
Author: Adrian Chadd <adrian@creative.net.au>
Bug 2558: pt 1: Connect forwarding setting error too early

This does not appear to be all of the cause of 2558, but its part of the
problem anyway. Request forwarding should not be setting a connection
failed error page until all attempts at making a connection have failed.
This patch does not correct the place its being set, but clears err before
re-trying a connection.

From IRC:
(13:09:03) adri: no idea about v4-only hostnames
but the bug is still valid; you're creating errors on
the connect fail, but not clearing them before the next connect

15 years agoCleanup: zap CVS Id tags
Amos Jeffries [Sun, 1 Feb 2009 10:09:23 +0000 (23:09 +1300)] 
Cleanup: zap CVS Id tags

Bazaar does not need or use these tags so they no longer represent the
true current version of files.

Tags left as default (unset) values so sourceforge mirror can still issue
correctly labeled versions as before.

15 years agoSync autoconf requirements with bootstrap script.
Amos Jeffries [Sun, 1 Feb 2009 09:11:49 +0000 (22:11 +1300)] 
Sync autoconf requirements with bootstrap script.

Squid-3.1+ require at least autoconf 2.61.
Up to 2.63 tested and found working so far.

15 years agoBug 2576: Make translate target obey --disable-auto-locale
Amos Jeffries [Tue, 27 Jan 2009 01:37:30 +0000 (14:37 +1300)] 
Bug 2576: Make translate target obey --disable-auto-locale

15 years agoTypo. prevent bitrot in dead code too
Amos Jeffries [Tue, 27 Jan 2009 01:26:59 +0000 (14:26 +1300)] 
Typo. prevent bitrot in dead code too

15 years agoFix ESI breaks with --disable-optimizations
Amos Jeffries [Tue, 27 Jan 2009 00:31:48 +0000 (13:31 +1300)] 
Fix ESI breaks with --disable-optimizations

Turns out the libTrie configure script shares some macro handling
which needed a re-sync with the main squid script.

TODO: These should really be made into shared macros.

15 years ago3.1.0.4 SQUID_3_1_0_4
Amos Jeffries [Fri, 23 Jan 2009 05:36:58 +0000 (22:36 -0700)] 
3.1.0.4

15 years agoPrep for 3.1.0.4
Amos Jeffries [Fri, 23 Jan 2009 03:41:17 +0000 (16:41 +1300)] 
Prep for 3.1.0.4

15 years agoAuthor: Various Translators
Amos Jeffries [Fri, 23 Jan 2009 03:02:05 +0000 (16:02 +1300)] 
Author: Various Translators
Language Updates

Languages Converted from Legacy files to .po:
 Armenian, Azerbaijani, Czech, Estonian, Finnish, Japanese, Romanian, Serbian, Turkish

Several languages adding new translation pharses and corrections.

Remaining Legacy files converted to UTF-8 to ease further conversion.

see TRANSLATORS file for current list of translation contributors

15 years agoRegression Fix: rollback bug 2395 fix.
Amos Jeffries [Fri, 23 Jan 2009 02:39:22 +0000 (15:39 +1300)] 
Regression Fix: rollback bug 2395 fix.

Fixing bug 2395 uncovered a much more serious bug 2558.
It was not found earlier due to bug 2558 being a slow incremental affect
hidden by already-cached objects.

This rollback is intended as a temporary measure until a good fix can be
found for both bugs.

15 years agoOnly set Keep-alive once
Amos Jeffries [Fri, 23 Jan 2009 02:35:05 +0000 (15:35 +1300)] 
Only set Keep-alive once

Enact the TODO of same.

Some re-arrangement has been done to move setting cases which need
functions to be evaluated a lower priority than those which can be set
purely from flags.

15 years agoAuthor: Reinhard Sojka <reinhard.sojka@parlament.gv.at>
Amos Jeffries [Sat, 17 Jan 2009 01:16:40 +0000 (14:16 +1300)] 
Author: Reinhard Sojka <reinhard.sojka@parlament.gv.at>
Bug 2533: Solaris (sparc) with gcc/g++ doe not accept -xarch=generic64

15 years agoPolicy change on half_closed_clients setting
Amos Jeffries [Sat, 17 Jan 2009 01:12:23 +0000 (14:12 +1300)] 
Policy change on half_closed_clients setting

In Accordance with RFC:
http://www.mail-archive.com/squid-users@squid-cache.org/msg58658.html

It is not being removed entirely due to:
http://www.mail-archive.com/squid-dev@squid-cache.org/msg09338.html

15 years agoAuthor: Regardt van de Vyver <squid@vdvyver.net>
Amos Jeffries [Sat, 17 Jan 2009 01:09:01 +0000 (14:09 +1300)] 
Author: Regardt van de Vyver <squid@vdvyver.net>
Bug 2555: Fixes to SNMP-MIB

  * Modified imports as Integer32 and TEXTUAL-CONVENTION are external defines to
  this MIB, it's a compliance issue for validation

  * Updated the order of Revisions as the MIB spec requires them to be in reverse
  choronological order

  * moved the nlanr define to a valid location as it may not be the first defined
  item in a module (the MODULE IDENTITY must be)

  * Modified various "ACCESS" statements to "MAX-ACCESS" due to changes in the
  MIB spec requiring the change of defines.

  * Modified various interative table entries to "not-accessible". This is due to
  the fact that the root element should not be directly accessed, rather the
  generated table entries matching these values. This is not strictly neccesary
  but does make the file validate on severity 3 instead of severity 2.

  * Modified cacheMedianTime to have a valid range. Ranges are REQUIRED for any
  object used as an INDEX

  * Modified cachePeerPortHTTP and cachePeerPortIcp to use a new type
  "ValidPort". This is to meet a requirement that we cannot define valid port
  ranges in a sequence defenition.

  * Created a new define ValidPort so that we can specify a range of valid values
  for ports

  * In some object defines STATUS was set to mandatory, this is however not a
  valid MIB STATUS value and has thus been fixed to current. These items
  specifically caused the MIBs to fail compile completely.

  * cacheClientEntry had a duplicate oid and after checking the source code I
  updated its oid to the correct value.

SIDE NOTE:
Squid-2 and 3.0 have a different structure for cachePeerEnty enum. This may
cause some confusion if the squid3 mib is used with older squid releases.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 17 Jan 2009 01:06:15 +0000 (14:06 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Port the squidclient -V and -j options from 2.7

Also adds the ability to test legacy 0.9 special case of missing HTTP/
version string. Bugs in handling of these have been seen in the wild.

Attributed to Henrik Nordstrom as the original author of the 2.7 code
across several commits.

15 years agoBug 2556: HTCP fails without icp_port
Amos Jeffries [Fri, 16 Jan 2009 15:10:39 +0000 (04:10 +1300)] 
Bug 2556: HTCP fails without icp_port

Removes requirement for ICP port to be open for peer UDP queries to take
place.

TODO: Some work still needs to be done to separate the timeout from
icp_timeout and break ICP specific query logics out into icp code files.
But that is just cleanup for later.

15 years agoSourceLayout: migrate IPAddress into lipip.la
Amos Jeffries [Fri, 16 Jan 2009 12:14:02 +0000 (01:14 +1300)] 
SourceLayout: migrate IPAddress into lipip.la

This also makes some small changes to other API inside libip to allow
libbip.la to be built first as a POD library before anything src/ gets built.

Anything added to it from this point on MUST NOT require linkage outside
of libip.la or the planned libcompat.

15 years agoBug 2564: logformat '%tl' field not working as advertised
Amos Jeffries [Fri, 16 Jan 2009 11:48:10 +0000 (00:48 +1300)] 
Bug 2564: logformat '%tl' field not working as advertised

15 years agoCoverity scan found a few bad lines.
Amos Jeffries [Fri, 16 Jan 2009 11:43:09 +0000 (00:43 +1300)] 
Coverity scan found a few bad lines.

15 years agoAutoDoc and debugs the refresh_pattern algorithm and reply logic.
Amos Jeffries [Fri, 16 Jan 2009 10:11:45 +0000 (23:11 +1300)] 
AutoDoc and debugs the refresh_pattern algorithm and reply logic.

Also throws in some extra assertions to draw out bug 2491 earlier.

15 years agoSMB_LM: replace assertion with clean error report
Amos Jeffries [Fri, 16 Jan 2009 10:07:19 +0000 (23:07 +1300)] 
SMB_LM: replace assertion with clean error report

15 years agoBoost debugs for WCCPv2 startup actions
Amos Jeffries [Wed, 14 Jan 2009 22:23:50 +0000 (11:23 +1300)] 
Boost debugs for WCCPv2 startup actions

15 years agoAuthor: Francesco Chemolli + Amos Jeffries
Amos Jeffries [Fri, 9 Jan 2009 02:31:47 +0000 (15:31 +1300)] 
Author: Francesco Chemolli + Amos Jeffries
Pconn not being used when they should.

A slight misalignment between the keys generated for push and pop of
connections to the waiting pool caused new connections never to match
any of the existing connections.

This patch makes several alterations to achieve a fix:
 - reduces the FwdState push logics down into a simple selection in
   pconnPush function which previously was a dumb wrapper.
 - adds a dump of current hash keys to the cacheManager pconn report
 - adds much better debugging to the pconn process at level 48,3 and 48,6
 - adds some additional documentation of code to the related call tree

  Pconn API after this patch :

The Pconn KEY takes several parameters (host, port, domain, client-ip).

For HTTP requests this is normally generated from the request data of
same name with domain being optional since it may be identical to host.

However for peer-sourced requests this alters slightly and the host:port
fields become the peer NAME and HTTP-PORT.

This means the pconn key in abstract becomes a key to the TCP remote-end of
the link with an optional anchor on the domain being requested.

15 years agoDrop -V option. Obsolete since 2.6
Amos Jeffries [Fri, 9 Jan 2009 02:20:40 +0000 (15:20 +1300)] 
Drop -V option. Obsolete since 2.6

15 years agoUntangle CacheManager reports from log_fqdn
Amos Jeffries [Fri, 9 Jan 2009 02:16:41 +0000 (15:16 +1300)] 
Untangle CacheManager reports from log_fqdn

The fqdnFromAddr() call depends on log_fqdn to generate the FQDN. But
CacheManager needs to always display it whenever available. This removes
the call indirection, dependency and makes Name: field only display when
a name is available.

see Bug 2557 for more details.

15 years agoSourceLayout: move IPInterception into libip.la
Amos Jeffries [Fri, 9 Jan 2009 02:13:06 +0000 (15:13 +1300)] 
SourceLayout: move IPInterception into libip.la

15 years agoFix pinger immediate shutdowns
Amos Jeffries [Mon, 5 Jan 2009 03:53:51 +0000 (16:53 +1300)] 
Fix pinger immediate shutdowns

pinger runs okay when started manually, but shuts down after a sucessful
startup when run by Squid. This was due to the last_request timer being
left at zero/epoch.

Initialize the last_check timer base correctly.

15 years agoFix some QoS update build errors.
Amos Jeffries [Mon, 5 Jan 2009 03:52:14 +0000 (16:52 +1300)] 
Fix some QoS update build errors.

Also re-enables testbed testing of the QoS Features which prevented these
being caught earlier.

15 years agoAuthor: Alexander Lukyanov <lav@yar.ru>
Amos Jeffries [Fri, 26 Dec 2008 21:20:12 +0000 (10:20 +1300)] 
Author: Alexander Lukyanov <lav@yar.ru>
Bug 2330: allow keep-alive+chunked; don't add max-age for no-cache

Attached patch enables keep-alive for chunked transfer-encoding, as such
encoding allows to determine reply body end.

Also the patch disables adding of max-age to requests with no-cache flag. It
saves a few bytes and also makes less difference between the incoming and
outgoing requests. Max-age is obviously not useful for no-cache requests.

NP: amended after bug discussion to also skip adding of no-cache on
    internal calculation from local state which may not be correct
    down the line in other caches. (nocache includes local config settings).

15 years agoDocumentation updates
Amos Jeffries [Fri, 26 Dec 2008 21:18:13 +0000 (10:18 +1300)] 
Documentation updates

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Fri, 26 Dec 2008 21:15:59 +0000 (10:15 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2542: squid fails to resume dowload (and breaks content) when any ICAP filter is attached

In the case the icap client is enabled, the
ServerStateData::handleMoreAdaptedBodyAvailable called to handle the incoming
data from the ICAP server. Inside this function a StoreIOBuffer created to pass
the data to the related StoreEntry.

The bug is that the offset passed to the StoreIOBuffer did not count the 206
response offsets.
This patch uses the ServerStateData::currentOffset to compute the correct
offset (which also used in the case the icap client is not enabled).