]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
16 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Fri, 26 Dec 2008 21:47:16 +0000 (10:47 +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).

16 years ago3.0.STABLE11 SQUID_3_0_STABLE11
Amos Jeffries [Tue, 23 Dec 2008 04:18:32 +0000 (21:18 -0700)] 
3.0.STABLE11

16 years agoPrep for 3.0.STABLE11
Amos Jeffries [Tue, 23 Dec 2008 03:49:09 +0000 (16:49 +1300)] 
Prep for 3.0.STABLE11

16 years agoBug 2227: Sefgaults in MemBuf::reset during idnsSendQuery
Amos Jeffries [Tue, 23 Dec 2008 03:45:29 +0000 (16:45 +1300)] 
Bug 2227: Sefgaults in MemBuf::reset during idnsSendQuery

16 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Thu, 11 Dec 2008 23:25:17 +0000 (12:25 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2545: Segmentation fault when squid with icap server use a cache peer.

16 years agoFix SQUID_3_0 specific build error introduced with last commit
Guido Serassio [Mon, 8 Dec 2008 13:30:47 +0000 (14:30 +0100)] 
Fix SQUID_3_0 specific build error introduced with last commit

16 years agoIdentify where unknown method requests come from
Amos Jeffries [Sun, 7 Dec 2008 11:22:07 +0000 (00:22 +1300)] 
Identify where unknown method requests come from

16 years agoMake release script handle sub-RC cleanly.
Amos Jeffries [Wed, 3 Dec 2008 04:11:46 +0000 (21:11 -0700)] 
Make release script handle sub-RC cleanly.

16 years agoAuthor: Andrew Hoying <andrew_hoying@blm.gov>
Amos Jeffries [Wed, 3 Dec 2008 04:10:58 +0000 (21:10 -0700)] 
Author: Andrew Hoying <andrew_hoying@blm.gov>
Bug 2424: filedescriptors being left unnecessary opened

16 years ago3.0.STABLE11-RC1 SQUID_3_0_STABLE11_RC1
Amos Jeffries [Tue, 2 Dec 2008 12:20:50 +0000 (05:20 -0700)] 
3.0.STABLE11-RC1

16 years agoPrep for 3.0.STABLE11-RC1
Amos Jeffries [Tue, 2 Dec 2008 12:15:05 +0000 (01:15 +1300)] 
Prep for 3.0.STABLE11-RC1

16 years agoBug 2526: default ALLOW when no list specified.
Amos Jeffries [Mon, 1 Dec 2008 10:39:25 +0000 (23:39 +1300)] 
Bug 2526: default ALLOW when no list specified.

The expected behavior of ACL checking should cause an implicit default
deny state to be reached unless a terminating denial causes a state to
flip to allow.

A small logic flaw means that completely explicitly absent access control
list was flipped to ALLOW state.

It is believed that most security controls which have explicitly coded
defaults in ther configuration are not impacted by the bug or its fix.
Only empty delay pools and ICAP re*mods are expected to have any change
in behavior as a result.

16 years agoRollback rev 8909
Amos Jeffries [Mon, 1 Dec 2008 05:30:29 +0000 (18:30 +1300)] 
Rollback rev 8909

This change to StoreIO overlooked the signedness of the StoreIO* length
parameter. It may have resulted in objects that should not have been
store making their way into the cache.

Caches created by 3.0.STABLE10 release are known to contain many invalid
entries when rolled back to STABLE9 release. Whether or not these entries
are fatal to Squid is still unknown. It is currently expected that they
will be erased properly, but cause a lot of cache.log warnings while that
is happening. It is left to admin to decide if its worth purging their
cache on upgrade.

16 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 28 Nov 2008 12:08:43 +0000 (01:08 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Fix cache_peer forceddomainname when request has a Host header

cache_peer forceddomainname=xxx only worked when the received request
did not have a Host header.

16 years ago3.0 Release Notes updates
Amos Jeffries [Sun, 9 Nov 2008 03:21:08 +0000 (16:21 +1300)] 
3.0 Release Notes updates

Retrospective squid.conf diff against 2.7.

16 years agoUpdate execute and write permissions from some files.
Amos Jeffries [Sun, 9 Nov 2008 00:55:06 +0000 (13:55 +1300)] 
Update execute and write permissions from some files.

16 years agopermit execution of dummy script
Amos Jeffries [Sun, 2 Nov 2008 01:37:36 +0000 (14:37 +1300)] 
permit execution of dummy script

16 years agoDummy script to allow 3.0 snapshots.
Amos Jeffries [Thu, 30 Oct 2008 02:04:35 +0000 (15:04 +1300)] 
Dummy script to allow 3.0 snapshots.

Squid 3.x now depend on the TestBed scripts verifying the current code
before any snapshot can be built.

Since 3.0 has no TestBed integration we use this dummy script as bypass.

16 years agoCorrect warning on negative_ttl setting
Amos Jeffries [Tue, 28 Oct 2008 07:17:39 +0000 (20:17 +1300)] 
Correct warning on negative_ttl setting

16 years agoSync CONTRIBUTORS with contributed patch sets for 3.0
Amos Jeffries [Mon, 27 Oct 2008 12:23:29 +0000 (01:23 +1300)] 
Sync CONTRIBUTORS with contributed patch sets for 3.0

16 years agoBootstrapped
Automatic source maintenance [Thu, 23 Oct 2008 11:24:43 +0000 (05:24 -0600)] 
Bootstrapped

16 years agoMake --enable-storeio (without specifications) skip coss
Henrik Nordstrom [Thu, 23 Oct 2008 11:21:23 +0000 (13:21 +0200)] 
Make --enable-storeio (without specifications) skip coss

coss isn't supported. Don't automatically enable it.

16 years agoAuthor: Mikio Kishi <mkishi@104.net>
Amos Jeffries [Sun, 19 Oct 2008 11:14:50 +0000 (00:14 +1300)] 
Author: Mikio Kishi <mkishi@104.net>
Fix regression: access.log request size tag (%>st)

16 years agoDrop obsolete CVS Id tag from Release Notes
Amos Jeffries [Wed, 15 Oct 2008 08:48:24 +0000 (21:48 +1300)] 
Drop obsolete CVS Id tag from Release Notes

16 years ago3.0.STABLE 10 SQUID_3_0_STABLE10
Amos Jeffries [Tue, 14 Oct 2008 11:21:20 +0000 (05:21 -0600)] 
3.0.STABLE 10

16 years agoPrep for 3.0.STABLE10
Amos Jeffries [Tue, 14 Oct 2008 11:09:46 +0000 (00:09 +1300)] 
Prep for 3.0.STABLE10

16 years agoDocument the reply_body_max_size line format
Amos Jeffries [Tue, 14 Oct 2008 10:18:50 +0000 (23:18 +1300)] 
Document the reply_body_max_size line format

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.