]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
16 years agoWindows port: Fix build failure on Windows, rollback of wrong changes.
Guido Serassio [Sun, 12 Oct 2008 18:47:33 +0000 (20:47 +0200)] 
Windows port: Fix build failure on Windows, rollback of wrong changes.

The changes from this patch are absolutely wrong:
http://www.squid-cache.org/Versions/v3/3.0/changesets/b8884.patch
This is a 3.0 specific problem.

16 years agoBug 2393: DNS requests getting stuck in idns queue
Amos Jeffries [Sat, 11 Oct 2008 13:59:29 +0000 (02:59 +1300)] 
Bug 2393: DNS requests getting stuck in idns queue

Port of Squid-2 fix by Henrik Nordstrom

There seems to be two problems here.

a) On TCP communication failure Squid starts to restransmit the TCP query as
fast as it can, with no bounds checking. Keeps doing that until there is a
response or Squid is restarted...

b) For some reason the retransmit queue seems to halt for you. I have not yet
reproduced this issue, but may be related to the first..

16 years agoAuthor: Steve Bennett <S.Bennett@lancaster.ac.uk>
Amos Jeffries [Sat, 11 Oct 2008 13:52:24 +0000 (02:52 +1300)] 
Author: Steve Bennett <S.Bennett@lancaster.ac.uk>
Bug 2486: SEGV at startup due to URLHostName

16 years agoAuthor: Henrik Nordstrom <hno@squid-cache.org>
Amos Jeffries [Sat, 11 Oct 2008 13:45:20 +0000 (02:45 +1300)] 
Author: Henrik Nordstrom <hno@squid-cache.org>
Bug 2447: pt 1: Segfault on failed TCP DNS query

Adds debug messages for better tracking.
Aborts fatal operations early.

16 years agoFix: Coverity detected possible NULL dereference.
Amos Jeffries [Wed, 8 Oct 2008 05:15:31 +0000 (18:15 +1300)] 
Fix: Coverity detected possible NULL dereference.

KK message response with exactly zero-length encrypted data component
will cause Squid fakeauth helper to crash.

Not expected in normal operation. But maybe seen with specially crafted
or rare mangled responses.

16 years agoRemove rev 8908. Bad attributions
Amos Jeffries [Wed, 8 Oct 2008 05:11:19 +0000 (18:11 +1300)] 
Remove rev 8908. Bad attributions

16 years agoCoverity detected. inconsistent error detection on StoreIOBUffer
Amos Jeffries [Mon, 6 Oct 2008 11:35:50 +0000 (05:35 -0600)] 
Coverity detected. inconsistent error detection on StoreIOBUffer

Audit reveals only one of several callers which might set negative length
state were checking for it and setting error flag properly.

Makes more sense for the StoreIOBuffer constructor to do its own
error state detection with information than to offload on callers.

16 years agoCoverity detected. inconsistent error detection on StoreIOBUffer
Amos Jeffries [Mon, 6 Oct 2008 11:34:25 +0000 (05:34 -0600)] 
Coverity detected. inconsistent error detection on StoreIOBUffer

Audit reveals only one of several callers which might set negative length
state were checking for it and setting error flag properly.

Makes more sense for the StoreIOBuffer constructor to do its own
error state detection with information than to offload on callers.

16 years agoCompile errors.
Amos Jeffries [Sat, 27 Sep 2008 13:32:20 +0000 (01:32 +1200)] 
Compile errors.

16 years agoBug 2433: Ftp put gives bad gateway but put is correct
Amos Jeffries [Sat, 27 Sep 2008 10:20:13 +0000 (22:20 +1200)] 
Bug 2433: Ftp put gives bad gateway but put is correct

16 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sat, 27 Sep 2008 10:06:05 +0000 (22:06 +1200)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Bug #2459 workaround: When dns_error_message value is lost,

use "lost DNS error" text and log at level 1 to inform the administrator
about the internal error.

This temporary hack does not fix the incorrect DNS error value problem, only
the lost one.

16 years agoAuthor: Benno Rice <benno@squid-cache.org>
Amos Jeffries [Fri, 26 Sep 2008 13:50:31 +0000 (07:50 -0600)] 
Author: Benno Rice <benno@squid-cache.org>
Don't strcmp Config.Log.store if it's NULL in storeLogOpen.

16 years agoBootstrapped
Automatic source maintenance [Sun, 21 Sep 2008 00:14:23 +0000 (18:14 -0600)] 
Bootstrapped

16 years agoAuthor: Luigi Gangitano <luigi@debian.org>
Amos Jeffries [Sat, 20 Sep 2008 09:24:48 +0000 (03:24 -0600)] 
Author: Luigi Gangitano <luigi@debian.org>
Define DEFAULT_CACHEMGR_CONFIG before its first use.

16 years agoBootstrapped
Automatic source maintenance [Sat, 20 Sep 2008 00:14:48 +0000 (18:14 -0600)] 
Bootstrapped

16 years agoAuthor: Francois Cami <fcami@winsoft.fr>
Amos Jeffries [Fri, 19 Sep 2008 04:08:51 +0000 (16:08 +1200)] 
Author: Francois Cami <fcami@winsoft.fr>
Bug 2466: bad links in ./configure due to website changes

16 years agoAuthor: Hasso Tepper <hasso@estpak.ee>
Amos Jeffries [Thu, 18 Sep 2008 10:39:48 +0000 (22:39 +1200)] 
Author: Hasso Tepper <hasso@estpak.ee>
Bug 2465: Support for DragonFly BSD

Part 1, this covers all the known code changes.
Bootstrap auto-tools system still needs an update to discover the OS
properly. See Bug report for details.

16 years agoBug 2391: assertion failed: forward.cc:1209: "(fs->code == HIER_DIRECT) == !fs->_peer"
Amos Jeffries [Thu, 18 Sep 2008 10:04:44 +0000 (22:04 +1200)] 
Bug 2391: assertion failed: forward.cc:1209: "(fs->code == HIER_DIRECT) == !fs->_peer"

assert was wrong.

16 years agoUpdate html release notes version text
Amos Jeffries [Thu, 11 Sep 2008 11:02:39 +0000 (23:02 +1200)] 
Update html release notes version text

16 years agoBootstrap and build testing SQUID_3_0_STABLE9
Amos Jeffries [Tue, 9 Sep 2008 16:05:34 +0000 (10:05 -0600)] 
Bootstrap and build testing

16 years agoPrep for STABLE 9
Amos Jeffries [Tue, 9 Sep 2008 14:53:44 +0000 (02:53 +1200)] 
Prep for STABLE 9

16 years agoFix compile error on Cygwin
Amos Jeffries [Tue, 9 Sep 2008 13:38:02 +0000 (01:38 +1200)] 
Fix compile error on Cygwin

16 years agoImport windows support notes from 2.6
Amos Jeffries [Tue, 9 Sep 2008 13:33:34 +0000 (01:33 +1200)] 
Import windows support notes from 2.6

16 years agoBootstrapped
Amos Jeffries [Mon, 8 Sep 2008 14:32:54 +0000 (08:32 -0600)] 
Bootstrapped

16 years agoLanguage Translations: import latest templates
Amos Jeffries [Mon, 8 Sep 2008 14:07:25 +0000 (02:07 +1200)] 
Language Translations: import latest templates

This change makes the current and future releases of 3.0 fully compatible
with the langpack bundles now released by the Squid Developers.

Existing translation files currently distributed are tagged for removal
in some future release and should be replaced/updated by the langpack
contents.

This patch:
 - merges back the current templates directory contents as if it was a
    new language to replace English/* .
 - makes those templates the default hard-coded language files
 - makes those files always distribute and install

16 years agoUse safe functions in basic auth MSNT helper
Amos Jeffries [Mon, 8 Sep 2008 13:30:02 +0000 (01:30 +1200)] 
Use safe functions in basic auth MSNT helper

Advanced testing reveals that the helper does not use the
string-safe functions Squid should be using.

This patch corrects that and a bit of formatting fluff.

16 years agoCOSS removal from 3.0
Amos Jeffries [Mon, 8 Sep 2008 13:14:01 +0000 (01:14 +1200)] 
COSS removal from 3.0

We had a vote on this some (several) months before 3.0 got branched, and
it was decided to drop COSS from the Squid-3.0 branch once branched.
Then the branching got delayed, and this task was forgotten when it
finally branched.

Until COSS gets significantly updated it's counter-productive to ship it
in STABLE releases. But the current code needs to be kept in trunk as
reference on how things got refactored for the day the current COSS code
gets forward ported to Squid-3.

Regards
Henrik

16 years agoBootstrapped
Automatic source maintenance [Mon, 1 Sep 2008 00:14:37 +0000 (18:14 -0600)] 
Bootstrapped

16 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sun, 31 Aug 2008 13:58:03 +0000 (07:58 -0600)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Fixed typo in squid.h which would prevent leak checking for arrays.

16 years agoBug 2340: make install errors, uudecode, gif-files
Amos Jeffries [Sun, 31 Aug 2008 13:56:02 +0000 (07:56 -0600)] 
Bug 2340: make install errors, uudecode, gif-files

Removes dynamic generation of static files and VCS distributes them
directly.

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 15 Aug 2008 11:13:20 +0000 (23:13 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug #2437: peer name not logged in access.log like expected, instead the ip address is logged

The hierarchy field in access.log should log the peer name, not the hostname/ipaddress.

This is a regression from 2.6.

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 15 Aug 2008 11:02:18 +0000 (23:02 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Windows port: Silence some harmless GCC warnings/errors

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 15 Aug 2008 10:57:53 +0000 (22:57 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Shield netdb.h include. Not available on all platforms (Windows)

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 15 Aug 2008 10:53:02 +0000 (22:53 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
GCC 4.3 changed semantics of "extern inline" to that of C99 (same as inline),

but we assume GNU GCC semantics. This sets the needed attribute to tell GCC
to continue using GNU GCC semantics on this function.

16 years agoAuthor: Markus <huaraz@moeller.plus.com>
Amos Jeffries [Wed, 13 Aug 2008 06:04:16 +0000 (00:04 -0600)] 
Author: Markus <huaraz@moeller.plus.com>
Bug 2426: Increase buffer in authenticateNegotiateStart / squid_kerb_auth

16 years agoAuthor: Dmitry Kurochkin
Amos Jeffries [Mon, 11 Aug 2008 13:25:53 +0000 (01:25 +1200)] 
Author: Dmitry Kurochkin
Bug 2352: no_check.pl ntlm helper never sends challenge

16 years agoFix: cppunit tests broken by squid.h defines
Amos Jeffries [Mon, 11 Aug 2008 13:09:45 +0000 (01:09 +1200)] 
Fix: cppunit tests broken by squid.h defines

In order to promote safe coding and the use of internal accounting API
Squid mangles certain common function definitions such as malloc/calloc.

While this is a great idea for Squid internal code. It's not good when
integrating external cppunit macro libraries. At least one of which in
use performs its own allocation during testing.

This adds an extra layer of protection to prevent redirection with certain
unit-tests where the macros needed clash with Squid.

17 years agovariabel slipped
Amos Jeffries [Wed, 6 Aug 2008 13:30:39 +0000 (01:30 +1200)] 
variabel slipped

17 years agoFix: Unsupported method in request may show raw binary data in log.
Amos Jeffries [Wed, 6 Aug 2008 13:27:10 +0000 (01:27 +1200)] 
Fix: Unsupported method in request may show raw binary data in log.

hp->buf which should be a plain text HTTP request is occasionally full of
binary garbage.

 * replace any non-printables with underscores.

 * crop the output at 100 chars, we should not need a whole binary
   streaming video to identify the issue.

 * reference extension_methods for admin if its a genuine request.

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 6 Aug 2008 12:41:12 +0000 (06:41 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug #2427: squid_ldap_group -h reports the old % codes for -f

The help output still showed the old obsolete %v/%a codes in the -f description
Updates to %u for user and %g for group some many years ago.

17 years agoBootstrapped
Henrik Nordstrom [Thu, 31 Jul 2008 00:13:39 +0000 (18:13 -0600)] 
Bootstrapped

17 years agoCorrect ICAP notes: *_postcache vector points not coded.
Amos Jeffries [Fri, 25 Jul 2008 10:57:50 +0000 (22:57 +1200)] 
Correct ICAP notes: *_postcache vector points not coded.

17 years agoImprove display on fd debug output
Amos Jeffries [Thu, 24 Jul 2008 11:52:55 +0000 (23:52 +1200)] 
Improve display on fd debug output

17 years agoBug 2419: Regression: 3.0 must still wrap CARP properly.
Amos Jeffries [Mon, 21 Jul 2008 16:10:47 +0000 (04:10 +1200)] 
Bug 2419: Regression: 3.0 must still wrap CARP properly.

17 years agoAuthor: Eugene Gladchenko <eugene@donpac.ru>
Amos Jeffries [Sat, 19 Jul 2008 05:10:03 +0000 (23:10 -0600)] 
Author: Eugene Gladchenko <eugene@donpac.ru>
Bug #2418: mgr:active_requests always returns "delay_pool 0"

The delay pool indication in mgr:active_requests had not been updated
when delay pools was refactored some years ago..

17 years agoCorrect HTCP stats. Slipped out with peerAlive conversion
Amos Jeffries [Sat, 19 Jul 2008 05:08:38 +0000 (23:08 -0600)] 
Correct HTCP stats. Slipped out with peerAlive conversion

17 years ago3.0 STABLE 8 SQUID_3_0_STABLE8
Amos Jeffries [Fri, 18 Jul 2008 07:12:51 +0000 (01:12 -0600)] 
3.0 STABLE 8

17 years agoPrep for STABLE 8
Amos Jeffries [Fri, 18 Jul 2008 06:48:14 +0000 (18:48 +1200)] 
Prep for STABLE 8

17 years agoDrop incorrect mention of all ACL.
Amos Jeffries [Thu, 17 Jul 2008 15:28:09 +0000 (09:28 -0600)] 
Drop incorrect mention of all ACL.

17 years agoUpdate Changelog for STABLE8
Amos Jeffries [Thu, 17 Jul 2008 15:05:25 +0000 (09:05 -0600)] 
Update Changelog for STABLE8

17 years agoAuthor: Mark Nottingham <mnot@pobox.com>
Amos Jeffries [Thu, 17 Jul 2008 13:02:33 +0000 (07:02 -0600)] 
Author: Mark Nottingham <mnot@pobox.com>
Bug #2376: Round-Robin becomes unbalanced when a peer dies and comes back

When a peer goes down and then comes back, its round-robin counters aren't
reset, causing it to get a disproportionate amount of traffic until it "catches
up" with the rest of the peers in the round-robin pool.

If it was down for load-related issues, this has the effect of making it more
likely that it will go down again, because it's temporarily handling the load
of the entire pool.

Normally, this isn't a concern, because the number of requests that it can get
out-of-step is relatively small (bounded to how many requests it can be given
before it is considered down -- is this 10 in all cases, or are there corner
cases?), but in an accelerator case where the origin has a process-based
request-handling model, or back-end processes are CPU-intensive, it is.

This patch resets the counters each time a peer changes state.

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Thu, 17 Jul 2008 11:51:01 +0000 (05:51 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
userhash and sourcehash peer selection methods

These is effectively just copies of carp.cc with changed keying method
to key on the authenticated username respectiely client source address.

17 years agoBug 2411: fakeauth_auth is crashing during NTLM auth
Amos Jeffries [Thu, 17 Jul 2008 10:51:59 +0000 (04:51 -0600)] 
Bug 2411: fakeauth_auth is crashing during NTLM auth

A NULL abort test was missing from the Squid-3 version.

17 years agoFix compile error auto-testing found
Amos Jeffries [Thu, 17 Jul 2008 10:49:55 +0000 (04:49 -0600)] 
Fix compile error auto-testing found

17 years agoSupercede b8856: old compiler support
Amos Jeffries [Tue, 15 Jul 2008 11:51:16 +0000 (23:51 +1200)] 
Supercede b8856: old compiler support

Seems the (void) casting method indicated as the best method to fix
unused return warning does not actually work. :-(

Of the other approaches, I'm picking this one used previously by the
SuSE Linux port of Squid as the cleanest.

Thanks Michael Bienia from the Ubuntu team for assistance testing.

17 years agoWindows port: Fix mswin_check_ad_group build error on MinGW and Cygwin
Guido Serassio [Sun, 13 Jul 2008 12:24:35 +0000 (14:24 +0200)] 
Windows port: Fix mswin_check_ad_group build error on MinGW and Cygwin

The w32api currently available on MinGW and Cygwin is not complete, and
lacks the needed AD functions for mswin_check_ad_group.
This add to config.test the check for the availability of the needed functions.

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 12 Jul 2008 12:48:15 +0000 (06:48 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Workaround for Linux-2.6.24/2.6.25 netfilter_ipv4.h __u32 issue

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 12 Jul 2008 12:45:55 +0000 (06:45 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Make --with-large-files and --with-build-envirnment=default play nice together

In this combination we need to add -D_FILE_OFFSET_BITS=64 just as we do when
not finding a suitable build environment.

17 years agoBoost error pages HTML standards.
Amos Jeffries [Sat, 12 Jul 2008 12:24:42 +0000 (06:24 -0600)] 
Boost error pages HTML standards.

This converts the hard-coded footer section of all error pages to XHTML
or HTML 4.01 Strict compliance. Ready for any improvements done on page
templates themselves to match the compliance level.

17 years agoCompiler support: fix cc compiler complaints about function results
Amos Jeffries [Fri, 11 Jul 2008 10:35:53 +0000 (04:35 -0600)] 
Compiler support: fix cc compiler complaints about function results

Fixes warnings produced by cc compiler about unused function
results. gcc ignores these.

This patch is to fix package generation on Ubuntu. By the looks
of it SuSE linux, Fedora Core, and RedHat also benefit.

17 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Thu, 10 Jul 2008 13:22:19 +0000 (01:22 +1200)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2400: ICAP accept mechanism assumes okay result

ACL checks produces an ACCESS_REQ_PROXY_AUTH result but ICAP
result handler assumes any non-zero result means ACCESS_ALLOWED

This can result in many requests being shunted to ICAP incorrently.

17 years agoWindows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros
Guido Serassio [Wed, 9 Jul 2008 14:24:18 +0000 (16:24 +0200)] 
Windows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros

17 years agoRemove strtok_r() usage because is not available on all platforms
Guido Serassio [Wed, 9 Jul 2008 13:15:32 +0000 (15:15 +0200)] 
Remove strtok_r() usage because is not available on all platforms

17 years agoBootstrapped
Henrik Nordstrom [Wed, 9 Jul 2008 00:13:42 +0000 (18:13 -0600)] 
Bootstrapped

17 years agoWindows port: Fix various build errors
Guido Serassio [Tue, 8 Jul 2008 10:33:53 +0000 (12:33 +0200)] 
Windows port: Fix various build errors

17 years agoWindows port: always shutdown winsocks on program termination
Guido Serassio [Tue, 8 Jul 2008 10:31:05 +0000 (12:31 +0200)] 
Windows port: always shutdown winsocks on program termination

WSACleanup() should called always before program termination.
Also ran indent on squid_radius_auth.c.

17 years agoWindows port: configure enhancements on MinGW
Guido Serassio [Tue, 8 Jul 2008 10:21:25 +0000 (12:21 +0200)] 
Windows port: configure enhancements on MinGW

- Really detect FD_SETSIZE on MinGW
- Detect real size of TCP and UDP buffers on MinGW
- Check for winsock.h or winsock2.h availability on MinGW

17 years agoWindows port: add option for control of IP address changes notification in squid...
Guido Serassio [Tue, 8 Jul 2008 10:07:15 +0000 (12:07 +0200)] 
Windows port: add option for control of IP address changes notification in squid.conf

On Windows Squid by default will monitor IP address changes and will
reconfigure itself after any detected event. This is very useful for
proxies connected to internet with dial-up interfaces.
In some cases (a Proxy server acting as VPN gateway is one) it could be
desiderable to disable this behaviour.

17 years agoWindows port: forward port of 2.7 lib functions updates
Guido Serassio [Tue, 8 Jul 2008 09:55:18 +0000 (11:55 +0200)] 
Windows port: forward port of 2.7 lib functions updates

- Implement crypt() on Windows
- Implement getopt() on Windows
- Implement dirent-style opendir(), readdir(), closedir(),
  rewinddir(), seekdir() and telldir() on Windows

17 years agoWindows port: allow build of squid_radius_auth on Windows
Guido Serassio [Tue, 8 Jul 2008 09:43:16 +0000 (11:43 +0200)] 
Windows port: allow build of squid_radius_auth on Windows

Experimental - correct helper functionality still NOT TESTED

17 years agoAuthor: Brad Smith <brad@comstyle.com>
Amos Jeffries [Tue, 8 Jul 2008 03:24:16 +0000 (21:24 -0600)] 
Author: Brad Smith <brad@comstyle.com>
Bug 2396: Correct the opening of the PF device file.

The PF device file is supposed to be opened read-only as of quite a number of
releases ago.

17 years agoAuthor: Guido Serassio <serassio@squid-cache.org>
Amos Jeffries [Tue, 8 Jul 2008 03:01:49 +0000 (21:01 -0600)] 
Author: Guido Serassio <serassio@squid-cache.org>
Fix build error on Solaris using gcc and --with-large-files

On Solaris getconf returns for CFLAGS and LDFLAGS -xarch=generic64 option, but
this option is supported only by Sun cc, so we need to We need to replace it
with -m64 gcc equivalent option

17 years agoRollback: Windows port: cachemgr.cgi should use closesocket not close
Amos Jeffries [Fri, 4 Jul 2008 11:10:23 +0000 (23:10 +1200)] 
Rollback: Windows port: cachemgr.cgi should use closesocket not close

Squid-3 OS-specific portability code makes these obsolete.

17 years agoKill some magic numbers in string definition
Amos Jeffries [Thu, 3 Jul 2008 11:52:27 +0000 (23:52 +1200)] 
Kill some magic numbers in string definition

17 years agoWindows port: cachemgr.cgi should use closesocket not close
Amos Jeffries [Thu, 3 Jul 2008 05:07:35 +0000 (17:07 +1200)] 
Windows port: cachemgr.cgi should use closesocket not close

This bug was apparently fixed in 2.6 but not in 3.0.
It only affects Windows builds.

This brings Squid-3 cachemgr.cgi up to full Windows support parity with
Squid-2

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Thu, 3 Jul 2008 05:05:22 +0000 (17:05 +1200)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Port from 2.6: Support for cachemgr sub-actions

see. http://www.squid-cache.org/Versions/v2/2.6/changesets/10659.patch

This brings the Squid-3 cachemgr.cgi up to parity and backwards
compatibility with Squid 2.6 cachemgr.cgi

17 years agoChanged text file format from DOS to Unix
Guido Serassio [Sun, 29 Jun 2008 18:47:49 +0000 (20:47 +0200)] 
Changed text file format from DOS to Unix

17 years agoAdded missing reference to reconfigure cachemgr action in squid.conf
Guido Serassio [Sun, 29 Jun 2008 18:25:05 +0000 (20:25 +0200)] 
Added missing reference to reconfigure cachemgr action in squid.conf

17 years agoChanged text file format from DOS to Unix
Guido Serassio [Sun, 29 Jun 2008 18:17:11 +0000 (20:17 +0200)] 
Changed text file format from DOS to Unix

17 years agoAuthor: Alter <alter@alter.org.ua>
Amos Jeffries [Fri, 27 Jun 2008 13:40:12 +0000 (07:40 -0600)] 
Author: Alter <alter@alter.org.ua>
Bug 2301: Regression: Log format request/reply size options

MFC: logging HTTP-request size

I've made patch to Squid 2.5-stable14 (r4), which enables logging of
http-request size and/or total request+reply size.
Patch extends 'logformat' option of squid.conf. '>st' and 'st' can be
used to log request size and total size respectively. If 'st' is used
instead of '<st', squid will log total request size
instead of reply size to access.log. For example

logformat altsquid %ts.%03tu %6tr %>a %Ss/%03Hs %st %rm %ru %un %Sh/%<A %mt
access_log /usr/local/squid/logs/access.log altsquid

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 27 Jun 2008 13:11:51 +0000 (07:11 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug #2365: cachemgr.cgi fails to HTML encode config dumps properly

log_format and a couple other directives may contain HTML reserved characters
such as < >, and these needs to be HTML quoted in the output.

17 years agoAuthor: Mark Nottingham <mnot@pobox.com>
Amos Jeffries [Fri, 27 Jun 2008 13:08:03 +0000 (07:08 -0600)] 
Author: Mark Nottingham <mnot@pobox.com>
Bug #2388: acl documentation cleanup

Squid.conf for ACL has a few small errors that might lead to confusion;
this fixes them and makes it a bit more consistent.

17 years agoBootstrapped SQUID_3_0_STABLE7
Henrik Nordstrom [Sat, 21 Jun 2008 00:14:22 +0000 (18:14 -0600)] 
Bootstrapped

17 years agoRebuild Release Notes
Amos Jeffries [Fri, 20 Jun 2008 12:55:18 +0000 (00:55 +1200)] 
Rebuild Release Notes

17 years agoPrep for STABLE7
Amos Jeffries [Fri, 20 Jun 2008 12:53:34 +0000 (06:53 -0600)] 
Prep for STABLE7

17 years agoBug 1566 (also Bug 975): esi:include aborts with lock assert
Amos Jeffries [Fri, 20 Jun 2008 12:46:59 +0000 (06:46 -0600)] 
Bug 1566 (also Bug 975): esi:include aborts with lock assert

Proper fix requires callers inserting HTTPMSGLOCK() when the base rep
pointers are set, and HTTPMSGUNLOCK() macros when done. The lock/unlock
mechanism will take care of garbage collection in the background if used
properly.

The function this patches has no need to perform any of that itself
either way (it's a * not a ** ptr parameter so _cannot_ be safely deleted).

I'm cementing the temporary fix for 975 and 1566 as a permanent one and
documenting the correct requirements of the functions callers to prevent
memory leaks.

If leaks are found it will be separate bugs in the calling code related
to bad refcounting.

17 years agoNetfilter headers not detected properly.
Amos Jeffries [Fri, 20 Jun 2008 12:41:29 +0000 (06:41 -0600)] 
Netfilter headers not detected properly.

ip(6)tables v1.4.0 was released with a small bug in its header dependency.
This caused our configure checks for its usability to fail.

Also a mismatch between the code #if .. #endif and configure definitions
caused some pre-compiler logic failures on GCC 4.3.

This fixes both issues and makes Squid operable again when built against
Netfilter xtables v1.4.0

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 20 Jun 2008 12:31:22 +0000 (06:31 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Correct spelling of WCCPv2 dst_port_hash to match the source

17 years agoBug 2384: Assertion failed on ESI page.
Amos Jeffries [Fri, 20 Jun 2008 03:40:55 +0000 (15:40 +1200)] 
Bug 2384: Assertion failed on ESI page.

ESI was deleting its reference to child HTTP requests instead of unlocking
them. Even if they were in use elsewhere.

TODO: A better approach may be to cancel the dependent child request
entirely and close its resources down in a chain-reaction.

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Thu, 19 Jun 2008 05:37:04 +0000 (23:37 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Reject ridiculously large ASN.1 lengths

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Thu, 19 Jun 2008 05:35:31 +0000 (23:35 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Fix SNMP reporting of counters with a value >= 0xFF800000

The ASN.1 encoding of unsigned integers incorrectly compressed the value
as if it was a signed integer, truncating leading 0xFF octest, causing
0xFF800000 to be send ax 0x800000, 0xFFFF8000 as 0x8000 etc..

17 years agoRoll back. Wrong attributions
Amos Jeffries [Thu, 19 Jun 2008 05:34:00 +0000 (23:34 -0600)] 
Roll back. Wrong attributions

17 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Thu, 19 Jun 2008 05:32:28 +0000 (23:32 -0600)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Reject ridiculously large ASN.1 lengths

17 years agoAuthor: JPP <jpp1@frws.com>
Amos Jeffries [Thu, 19 Jun 2008 05:30:26 +0000 (23:30 -0600)] 
Author: JPP <jpp1@frws.com>
logformat docs contain extra whitespace

They also failed to mention that the displayed formats are built-in and
do not need to be defined.

17 years agoUpdate ChangeLog
Amos Jeffries [Sun, 15 Jun 2008 03:39:26 +0000 (21:39 -0600)] 
Update ChangeLog

17 years agoBug 2323 (again): basic auth leaks memory
Amos Jeffries [Fri, 13 Jun 2008 13:43:09 +0000 (07:43 -0600)] 
Bug 2323 (again): basic auth leaks memory

This round was caused by a few missing unlocks causing objects to be
incorrectly identified as in-use during garbage collection.

Future cleanups really need to make these objects true RefCounted.

17 years agoAuthor: Mike Mitchell <Mike.Mitchell@sas.com>
Amos Jeffries [Fri, 13 Jun 2008 10:20:46 +0000 (04:20 -0600)] 
Author: Mike Mitchell <Mike.Mitchell@sas.com>
Bug #2241: weights not applied properly in round-robin peer selection

17 years agoVarious bugs - GCC 4.3 detected
Amos Jeffries [Fri, 13 Jun 2008 05:13:47 +0000 (23:13 -0600)] 
Various bugs - GCC 4.3 detected

17 years agoTypo in documentation
Amos Jeffries [Fri, 13 Jun 2008 04:43:56 +0000 (22:43 -0600)] 
Typo in documentation

17 years agoUpdate ACL docs
Amos Jeffries [Fri, 13 Jun 2008 04:42:05 +0000 (22:42 -0600)] 
Update ACL docs

  - Some regex types were missing -i mentions.
  - Altered auth type to mention intercept alongside transparent
    now that they are distinct in squid
  - Also cosmetic re-order of a few items to provide a some type grouping