]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
15 years agoDefault pinger OFF
Amos Jeffries [Tue, 23 Mar 2010 11:31:32 +0000 (00:31 +1300)] 
Default pinger OFF

The pinger install is still done without the special permissions needed.
So the pinger will fail to run in most setups. Will turn this on again
in a later release when the pinger is actually installed properly by
default.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Fri, 19 Mar 2010 10:22:14 +0000 (23:22 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Drop ufsdump from default builds.

As reported some weeks ago ufsdump fails to link on the upcoming Fedora
13 release due to linking issues, and as reported by Amos the same
linking issues is now also seen on Debian since somewhere between March
2 - 5.

While investigating this I found the following conclusions

- We are not actually installing ufsdump
- The dependencies between the Squid libraries are very non-obvious,
with libraries depending on plain object files and other strange things.
- The ufsdump linkage issues is somehow triggered by the libraries
including objects needing symbols from objects not included in that link
- Those failing library objects are not actually needed by ufsdump.
Linking succeeds if repeatedly removing each reported failing object
from the squid libraries.
- If the libraries were shared libraries then linking would fail on all
systems

The issue have been identified, or actually two separate issues. What is
yet unclear is what is the proper solution..

- Inline operator overloading causing indeterministic linkage,
resulting in seemingly unneeded sub modules being pulled in "at random".
Most notably this is seen with our custom new operation (which btw is
duplicated in two places: src/SquidNew.cc and include/SquidNew.h)

- The current Squid libraries have very unclear dependencies with no
  clean boundaries, resulting in linking failure when the above happens..

15 years agoBug 2873: undefined symbol rint
Amos Jeffries [Fri, 19 Mar 2010 10:17:55 +0000 (23:17 +1300)] 
Bug 2873: undefined symbol rint

Detect math library properly based on rint synbol we need.

15 years ago3.1.0.18 SQUID_3_1_0_18
Amos Jeffries [Sun, 14 Mar 2010 07:05:30 +0000 (00:05 -0700)] 
3.1.0.18

15 years agoPrep for 3.1.0.18
Amos Jeffries [Sun, 14 Mar 2010 05:23:03 +0000 (18:23 +1300)] 
Prep for 3.1.0.18

15 years agoPrep for 3.0.STABLE25
Amos Jeffries [Sun, 14 Mar 2010 05:14:01 +0000 (18:14 +1300)] 
Prep for 3.0.STABLE25

15 years agoBug 412: Send HTTP/1.1 to servers and peers
Amos Jeffries [Sun, 14 Mar 2010 04:23:22 +0000 (17:23 +1300)] 
Bug 412: Send HTTP/1.1 to servers and peers

Building on a lot of work by a very great many people over eight years.
Thank you very, very much to everyone who made this possible.

15 years agoAuthor: Various Translators
Amos Jeffries [Sun, 14 Mar 2010 04:08:19 +0000 (17:08 +1300)] 
Author: Various Translators
Error page language updates

 * Serbian language updated and split into Cyrillic and Latin alphabets.
 * Update all to include new templates content.

15 years agoSourceFormat Enforcement
Automatic source maintenance [Thu, 11 Mar 2010 02:39:34 +0000 (19:39 -0700)] 
SourceFormat Enforcement

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Wed, 10 Mar 2010 09:45:55 +0000 (22:45 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Various other Digest parser fixes

* Correct debug message when failing to parse digest attributes
* Correct digest stale=false in POST workaround code
* Fix new digest parser shutdown code when digest auth not configured
* Sanity check of the username.
  " cannot be allowed in usernames until the digest helper protocol
  has been redone

15 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Wed, 10 Mar 2010 09:20:02 +0000 (22:20 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Bump the debug-level of one cache manager related message

15 years agoSourceFormat Enforcement
Automatic source maintenance [Sun, 7 Mar 2010 02:50:26 +0000 (19:50 -0700)] 
SourceFormat Enforcement

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 6 Mar 2010 14:22:31 +0000 (03:22 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Improve coding style of digest parser somewhat so it's easier to follow

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 6 Mar 2010 14:13:09 +0000 (03:13 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Correct quoted-string parser. Got differently broken in digest parser fix.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 6 Mar 2010 03:42:04 +0000 (16:42 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug 2367: Fix stale=true on digest requests with unknown nonce

The nonce staleness check only worked if the stale nonce had not yet
been garbage collected, often resulting in incorrect stale=false
responses and resulting auth popups when using digest auth.

Note: this fix is different from how it's done in squid-2 where fixHeader
is called on all schemes in such conditions but only the active one with
and auth_user_request. Not entirely sure why that is done, but commit
message says something about Negotiate authentication.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Sat, 6 Mar 2010 03:21:24 +0000 (16:21 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug 2845: Rework the http digest auth parser

- Validate sanity of digest messages
- Properly parse quoted strings

15 years agoSend HTTP1.1 compliant 417 responses
Amos Jeffries [Sat, 6 Mar 2010 03:10:13 +0000 (16:10 +1300)] 
Send HTTP1.1 compliant 417 responses

Port of the 417 response handling and associated ignore_expect_100
from Squid 2.7.

15 years agoAuthor: Henrik Nordstrom <hno@squid-cache.org>
Amos Jeffries [Sat, 6 Mar 2010 02:33:11 +0000 (15:33 +1300)] 
Author: Henrik Nordstrom <hno@squid-cache.org>
Swallow 1xx status messages

Ported from 2.7. This makes Squid swallow 1xx replies from 1.1 servers
safely without breaking the clients connection.

15 years agoRaised some noncritical debug messages' debug-level.
Francesco Chemolli [Fri, 5 Mar 2010 09:02:08 +0000 (10:02 +0100)] 
Raised some noncritical debug messages' debug-level.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Mon, 1 Mar 2010 11:38:53 +0000 (00:38 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Associate external acl message with the request

this change associates external acl message with the request just as
is done with the log message, tags etc. Was in a global variable.

The old global variable is still there as a fallback, but can probably
be removed.

15 years agoAuthor: Steve Snyder <swsnyder@snydernet.net>
Amos Jeffries [Mon, 1 Mar 2010 11:24:51 +0000 (00:24 +1300)] 
Author: Steve Snyder <swsnyder@snydernet.net>
Bug 2869: Remove unused external reference

15 years agoAuthor: Diego Woitasen <diegows@xtech.com.ar>
Amos Jeffries [Mon, 1 Mar 2010 11:13:48 +0000 (00:13 +1300)] 
Author: Diego Woitasen <diegows@xtech.com.ar>
Bug 2507: squid_ldap_group: Strip Domain name separated by +

15 years agoBug 2787: unknown/unexpected status code messages
Amos Jeffries [Mon, 1 Mar 2010 11:05:56 +0000 (00:05 +1300)] 
Bug 2787: unknown/unexpected status code messages

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Mon, 1 Mar 2010 10:37:02 +0000 (23:37 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Bug 2813: Random unix_group crash at startup due to uninitialized pointer reference

The group array was not properly initialized.

This patch also removes the limitation of 10 groups.

15 years agoAuthor: Henrik Nordstrom <henrik@henriknordstrom.net>
Amos Jeffries [Mon, 1 Mar 2010 10:17:37 +0000 (23:17 +1300)] 
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
Migrate various IpAddress internal constants to private static members

15 years agoCorrect IPv4-mapped prefix, broken in rev 9865 Use POSIX tests for IPv6 address detec...
Henrik Nordstrom [Sun, 28 Feb 2010 21:24:17 +0000 (22:24 +0100)] 
Correct IPv4-mapped prefix, broken in rev 9865 Use POSIX tests for IPv6 address detections.

15 years agoAuthor: Adam Ciarcinski
Henrik Nordstrom [Sun, 28 Feb 2010 19:49:30 +0000 (20:49 +0100)] 
Author: Adam Ciarcinski
Bug 2866: Support OpenSSL 1.0

Port of patches provided by Adam Ciarcinski to fix build issues with
recent versions of OpenSSL in Apache on NetBSD.

15 years ago3.1.0.17 SQUID_3_1_0_17
Amos Jeffries [Wed, 24 Feb 2010 12:00:45 +0000 (05:00 -0700)] 
3.1.0.17

15 years agoPrep for 3.1.0.17
Amos Jeffries [Wed, 24 Feb 2010 09:48:57 +0000 (22:48 +1300)] 
Prep for 3.1.0.17

15 years agoCorrect FAQ link
Amos Jeffries [Wed, 24 Feb 2010 09:39:39 +0000 (22:39 +1300)] 
Correct FAQ link

15 years agoBug 2616: reduce IdleConnList::removeFD messages
Amos Jeffries [Wed, 24 Feb 2010 08:42:27 +0000 (21:42 +1300)] 
Bug 2616: reduce IdleConnList::removeFD messages

15 years agoAuthor: Joao Alves Neto <alves_joao@hotmail.com>
Amos Jeffries [Wed, 24 Feb 2010 08:23:53 +0000 (21:23 +1300)] 
Author: Joao Alves Neto <alves_joao@hotmail.com>
NTLMv2 support for fake NTLM helper.

15 years agoAuthor: Henrik Nordstrom <hno@squid-cache.org>
Amos Jeffries [Wed, 24 Feb 2010 07:25:59 +0000 (20:25 +1300)] 
Author: Henrik Nordstrom <hno@squid-cache.org>
Clean up use of httpReplySetHeaders to be consistent across the code.

... and remove the unneeded http_version argument.

Ported from 2.7

15 years agoHttpRequest uses GetHost in 3.1
Amos Jeffries [Sun, 14 Feb 2010 05:30:15 +0000 (18:30 +1300)] 
HttpRequest uses GetHost in 3.1

15 years agoPrep for 3.0.STABLE24
Amos Jeffries [Fri, 12 Feb 2010 13:10:33 +0000 (02:10 +1300)] 
Prep for 3.0.STABLE24

15 years agoAuthor: Various Translators
Amos Jeffries [Fri, 12 Feb 2010 12:54:02 +0000 (01:54 +1300)] 
Author: Various Translators
Error Page Language Updates

15 years agoRemove tidyHtml from the template generation tools.
Amos Jeffries [Fri, 12 Feb 2010 12:31:01 +0000 (01:31 +1300)] 
Remove tidyHtml from the template generation tools.

While nice, It introduces several problems:

* any syntax errors at all in the translation text causes a blank
  translated text file to be produced. Without any error code.

* automatically downgrades the HTML content-type meta to "us-ascii"
  despite the input and output both actually being UTF-8

* added dependency for building.

It's now used automatically by the translate toolkit from 1.5.0 so
needs to be expicitly disabled when present.

15 years agoAdd adapted_http_access option. Port of http_access2 from Squid-2
Amos Jeffries [Fri, 12 Feb 2010 12:29:17 +0000 (01:29 +1300)] 
Add adapted_http_access option. Port of http_access2 from Squid-2

15 years agoAuthor: Jean-Gabriel Dick <jean-gabriel.dick@curie.fr>
Amos Jeffries [Fri, 12 Feb 2010 12:26:49 +0000 (01:26 +1300)] 
Author: Jean-Gabriel Dick <jean-gabriel.dick@curie.fr>
Bug 1843: multicast-siblings cache_peer option for optimising multicast ICP relations

'multicast-siblings' : this option is meant to be used only for cache peers of
type "multicast". It instructs Squid that ALL members of this multicast group
have "sibling" relationship with it, not "parent".  This is an optimization
that avoids useless multicast queries to a multicast group when the requested
object would be fetched only from a "parent" cache, anyway.  It's useful, e.g.,
when configuring a pool of redundant Squid proxies, being members of the same
multicast group.

15 years agoAuthor: James Brotchie <brotchie@gmail.com>
Amos Jeffries [Fri, 12 Feb 2010 12:22:25 +0000 (01:22 +1300)] 
Author: James Brotchie <brotchie@gmail.com>
Port of X509 certificate alias-domain handling from 2.7.

15 years agoTypo in rev9881
Amos Jeffries [Thu, 11 Feb 2010 12:26:48 +0000 (01:26 +1300)] 
Typo in rev9881

15 years agoAuthor: Kieran Whitbread <k.j.whitbread@qmul.ac.uk>
Amos Jeffries [Thu, 11 Feb 2010 11:18:52 +0000 (00:18 +1300)] 
Author: Kieran Whitbread <k.j.whitbread@qmul.ac.uk>
Bug 2858: Segment violation in HTCP

15 years agoAuthor: Markus Moeller <huaraz@moeller.plus.com>
Henrik Nordstrom [Tue, 9 Feb 2010 20:07:00 +0000 (21:07 +0100)] 
Author: Markus Moeller <huaraz@moeller.plus.com>
squid_kerb_auth logging clarification

add ERROR, WARNING, etc to the logging messages.

15 years agoPrep for 3.0.STABLE23
Amos Jeffries [Tue, 2 Feb 2010 09:25:38 +0000 (22:25 +1300)] 
Prep for 3.0.STABLE23

15 years agoAuthor: Frank Schmirler <squid@schmirler.de> SQUID_3_1_0_16
Amos Jeffries [Mon, 1 Feb 2010 21:11:01 +0000 (10:11 +1300)] 
Author: Frank Schmirler <squid@schmirler.de>
Bug 2854: assertion failed: peer_select.cc:627

Peer logging strong omitted from bug 2851 patch port.

15 years agopam_auth SQUID_SOLARIS ifdef incomplete
Henrik Nordstrom [Mon, 1 Feb 2010 14:27:46 +0000 (15:27 +0100)] 
pam_auth SQUID_SOLARIS ifdef incomplete

15 years agopam_auth in 3.1 is C not C++
Henrik Nordstrom [Mon, 1 Feb 2010 14:07:11 +0000 (15:07 +0100)] 
pam_auth in 3.1 is C not C++

15 years ago3.1.0.16
Amos Jeffries [Mon, 1 Feb 2010 04:01:43 +0000 (21:01 -0700)] 
3.1.0.16

15 years agoPrep for 3.1.0.16
Amos Jeffries [Mon, 1 Feb 2010 01:56:03 +0000 (14:56 +1300)] 
Prep for 3.1.0.16

15 years agoPrep for 3.0.STABLE22
Amos Jeffries [Mon, 1 Feb 2010 01:09:00 +0000 (14:09 +1300)] 
Prep for 3.0.STABLE22

15 years agoAuthor: Marko <mr_4u2@yahoo.com>
Amos Jeffries [Sun, 31 Jan 2010 09:47:16 +0000 (22:47 +1300)] 
Author: Marko <mr_4u2@yahoo.com>
Bug 2496: Downloading some variants in full before relaying

AKA, assertion failed: comm.cc:115: "ccb->active == false"
if the client disconnected before download finished arriving.

15 years agoAuthor: Graham Keeling <graham@equiinet.com>
Amos Jeffries [Sun, 31 Jan 2010 09:42:17 +0000 (22:42 +1300)] 
Author: Graham Keeling <graham@equiinet.com>
WCCPv1 not connecting to router correctly

I am coming across a problem with WCCPv1...

squid-2.5 connects to UDP port 2048, I get replies, and everything else then works.

squid-3.1 looks like it is trying to connect to UDP port 0 on the cisco.
[and fails to work]

I have looked at the src/wccp.c for squid-2.5, and it is clear that the port is
being set to 2048 for the connection to the router.
I have also looked at the source for 2.6, 2.7 and 3.0 (src/wccp.cc for this
version).
In all those, it appears to be setting the port on the outgoing connection.

However, in the 3.1 source, it doesn't.

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Sun, 31 Jan 2010 09:35:53 +0000 (22:35 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Polished %>ha description.

15 years agoAuthor: Frank Schmirler <squid@schmirler.de>
Amos Jeffries [Sat, 30 Jan 2010 01:21:52 +0000 (14:21 +1300)] 
Author: Frank Schmirler <squid@schmirler.de>
Bug 2851: Connection pinning fails when using a peer

15 years agoAuthor: Christos Tsantilas <chtsanti@users.sourceforge.net>
Amos Jeffries [Sat, 30 Jan 2010 01:08:33 +0000 (14:08 +1300)] 
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Add the http::>ha format code and make http::>h log original request headers

This patch:
 - Modify the existin "http::>h format code to log HTTP request headers
   before any adaptation and redirection
 - Add the new format code "http::>ha" which allow the user to log HTTP
   request header or header fields after adaptation and redirection.

This is a Measurement Factory project.

15 years agoAuthor: Frank Schmirler <squid@schmirler.de>
Amos Jeffries [Sat, 30 Jan 2010 00:16:30 +0000 (13:16 +1300)] 
Author: Frank Schmirler <squid@schmirler.de>
Bug 2850: Mismatch in hier_code enum / hier_strings array

15 years agoDisplay cache_peer name option in CacheMgr config
Amos Jeffries [Fri, 29 Jan 2010 13:16:35 +0000 (02:16 +1300)] 
Display cache_peer name option in CacheMgr config

15 years agoAuthor: Michael van Elst
Amos Jeffries [Fri, 29 Jan 2010 13:11:49 +0000 (02:11 +1300)] 
Author: Michael van Elst
Use POSIX tests for IPv6 address detections.

15 years agoBug 2553: X-Forwarded-For with IPv6 address not handled correctly
Amos Jeffries [Fri, 29 Jan 2010 12:14:44 +0000 (01:14 +1300)] 
Bug 2553: X-Forwarded-For with IPv6 address not handled correctly

Also, remove the port from consideration. It is meaningless on indirect
client address.

15 years agoFix build errors when XFF compounds with other features
Amos Jeffries [Fri, 29 Jan 2010 11:56:09 +0000 (00:56 +1300)] 
Fix build errors when XFF compounds with other features

Some squid.conf options require XFF and other component wrappers to build
properly.

This fixes ICAP and Delay Pools clash which appeared in testing. Other
multiple-component wrapping can be done in identical fashion

15 years agoAuthor: Wolfgang Nothdurft <wolfgang@linogate.de>
Amos Jeffries [Fri, 29 Jan 2010 11:44:04 +0000 (00:44 +1300)] 
Author: Wolfgang Nothdurft <wolfgang@linogate.de>
Bug 2731: Add follow_x_forwarded_for support to ICAP

Pass the indirect client address to the ICAP server using X-Client-IP.

15 years agoAuthor: Wolfgang Nothdurft <wolfgang@linogate.de>
Amos Jeffries [Fri, 29 Jan 2010 11:32:46 +0000 (00:32 +1300)] 
Author: Wolfgang Nothdurft <wolfgang@linogate.de>
Bug 2730: Regressions in follow_x_forwarded_for since Squid-2

Two Major Regressions:

* Omitted testing for trust of the directly connecting client.
  this is critical is trusting the header content itself.
  The absence permitted remote clients to forge X-Forwarded-For
  and gain access to resources through Squid.
  (mitigated by the following)

* Bad logic in implementing the trust model resulted in any XFF
  headers containing untrusted IPs to be dropped in their entirety.
  This resulted in clients transiting more than one proxy heirarchy to
  be incorrectly logged and reported in the second.

Some polish alterations to the existing logics:

* Testing the direct client address for trust means the testing must be
  fully async 'slow'. Thus avoiding the memory leaks found on occasion.

 * acl_uses_indirect_client is not strictly needed to test multiple levels
  of X-Forwarded-For properly. The entire list of IPs are now always
  tested until an untrusted is found or an ACL failure occurs.

15 years agoMore portable rfc1035 unit test
Amos Jeffries [Fri, 29 Jan 2010 11:27:54 +0000 (00:27 +1300)] 
More portable rfc1035 unit test

15 years agoAdd warnings explaining Invalid Response errors generated by Squid
Amos Jeffries [Fri, 29 Jan 2010 11:23:57 +0000 (00:23 +1300)] 
Add warnings explaining Invalid Response errors generated by Squid

15 years agoDoc update on http_port tproxy
Amos Jeffries [Fri, 29 Jan 2010 11:17:32 +0000 (00:17 +1300)] 
Doc update on http_port tproxy

15 years agoBump AIO debug sync message down a level
Amos Jeffries [Fri, 29 Jan 2010 10:22:23 +0000 (23:22 +1300)] 
Bump AIO debug sync message down a level

15 years agoLimit language negotiation to bundled error pages
Amos Jeffries [Fri, 29 Jan 2010 10:16:02 +0000 (23:16 +1300)] 
Limit language negotiation to bundled error pages

15 years agoupdated release notes. Remove windows-only section
Amos Jeffries [Fri, 29 Jan 2010 10:01:36 +0000 (23:01 +1300)] 
updated release notes. Remove windows-only section

15 years agoBug 2601: pt 2: Mixed v4/v6 src acl leads to TCP_DENIED
Amos Jeffries [Sat, 16 Jan 2010 04:33:11 +0000 (17:33 +1300)] 
Bug 2601: pt 2: Mixed v4/v6 src acl leads to TCP_DENIED

 - Remove 'odd' netmask support from ACL.
 - Fully deprecate netmask support for ACL.

Earlier fix caused inconsistent handling between IPv4 and IPv6 builds of
Squid. Which has turned out to be a bad idea.
This fixes that by 'breaking' both build alternatives.

see also bug 2141 for long-term tracker.

15 years agoHandle DNS header-only packets as invalid.
Amos Jeffries [Sat, 16 Jan 2010 03:19:24 +0000 (16:19 +1300)] 
Handle DNS header-only packets as invalid.

15 years agoBug 2811: SNMP client table renumbering
Amos Jeffries [Sat, 16 Jan 2010 03:08:54 +0000 (16:08 +1300)] 
Bug 2811: SNMP client table renumbering

Bump the client table to version 2 for new IP address formatting.

* Also polishes the OID debug display a little bit.

15 years agoFix build errors in PAM auth on Linux
Amos Jeffries [Sat, 16 Jan 2010 03:00:20 +0000 (16:00 +1300)] 
Fix build errors in PAM auth on Linux

15 years agoAuthor: Francesco Chemolli <kinkie@squid-cache.org>
Amos Jeffries [Sat, 16 Jan 2010 02:54:48 +0000 (15:54 +1300)] 
Author: Francesco Chemolli <kinkie@squid-cache.org>
Skip performing C libTrie unit tests

15 years agoReduce non-IP debugs message priority
Amos Jeffries [Wed, 13 Jan 2010 12:47:46 +0000 (01:47 +1300)] 
Reduce non-IP debugs message priority

15 years agoRevert Typo in cachemgr.cc update
Amos Jeffries [Wed, 13 Jan 2010 12:44:32 +0000 (01:44 +1300)] 
Revert Typo in cachemgr.cc update

15 years agoVarious pointer and syntax errors.
Amos Jeffries [Wed, 13 Jan 2010 12:31:57 +0000 (01:31 +1300)] 
Various pointer and syntax errors.

Uncovered by Pawel Worach using clang static analysis tool.

Fixes:
 * several NULL pointer dereferences
 * several unused variable return saves
 * a parentheses typo

15 years agoAdd client_ip_max_connections
Amos Jeffries [Wed, 13 Jan 2010 12:11:48 +0000 (01:11 +1300)] 
Add client_ip_max_connections

Given some incentive after deep consideration of the slowloris claims.
While I still do not believe Squid is vulnerable per-se and some people
have tested and found no such failures as claimed for the DoS attack.

We found we could provide better administrative controls.  This is one such
that has been asked about many times and still did not exist. It operates
essentially the same as maxconn ACL, but does not require HTTP headers and
other request data to fully exist like ACLs do.

It is tested immediately after accept() and is request type agnostic, right
down to DNS TCP requests. So care is warranted in hierarchy situations or where
clients may be behind NAT.

Utilizes the client DB to monitor accepted TCP links. Operates prior to
everything so as to eliminate resource usage on the blocking case and
close the windows of opportunity for dribble-attacks etc.

Default (-1) is to keep the status-quo of no limits.

15 years agoBug 2452: external_acl_type does not limit entries, leads to high memory usage
Amos Jeffries [Wed, 13 Jan 2010 11:59:41 +0000 (00:59 +1300)] 
Bug 2452: external_acl_type does not limit entries, leads to high memory usage

Set a nominal cap of 256*1024 entries per external_acl_type configured.
This can be adjusted as needed with the external_acl_type cache=N option.

15 years agoDetatch status code enum from enums.h
Amos Jeffries [Wed, 13 Jan 2010 11:45:14 +0000 (00:45 +1300)] 
Detatch status code enum from enums.h

15 years agoBug 2787: pt 1: unexpected http status code messages
Amos Jeffries [Wed, 13 Jan 2010 11:26:58 +0000 (00:26 +1300)] 
Bug 2787: pt 1: unexpected http status code messages

Bumping the message from level-0 (critical) to level-1 (important and
major informational)

15 years agoAuthor: Matthew Morgan <atcs.matthew@gmail.com>
Amos Jeffries [Wed, 13 Jan 2010 04:42:35 +0000 (17:42 +1300)] 
Author: Matthew Morgan <atcs.matthew@gmail.com>
Incorrect function names in aclParseAclList debugging output.

15 years agoSourceFormat: do forced removal of stuck *.astylebak files
Amos Jeffries [Wed, 13 Jan 2010 04:29:53 +0000 (17:29 +1300)] 
SourceFormat: do forced removal of stuck *.astylebak files

15 years agoFix SetTproxy2OutgoingAddr definition error
Amos Jeffries [Wed, 13 Jan 2010 04:23:23 +0000 (17:23 +1300)] 
Fix SetTproxy2OutgoingAddr definition error

15 years agoRegression Fix: Make Squid abort on parse failures.
Amos Jeffries [Wed, 13 Jan 2010 04:17:42 +0000 (17:17 +1300)] 
Regression Fix: Make Squid abort on parse failures.

The addition of multi-file parsing and catching of thrown errors between
them caused any errors in sub-files to be non-fatal and allow Squid to
run as if everything was normal, even if parts of the config were not
being loaded.

Squid will now propigate the error exception out and exit with a count of
the errors found.

15 years agoBug 2811: pt 1: Correct Peer table OID numbering
Amos Jeffries [Wed, 13 Jan 2010 03:59:53 +0000 (16:59 +1300)] 
Bug 2811: pt 1: Correct Peer table OID numbering

The IPv6 alterations to the cache_peer table display should not have
altered existing OID numbers. This fixes that by bumping the new table
format to a new OID number .1.3.6.1.4.1.3495.1.5.1.3 for version 3 of the
table.

NP: version 1 of the table was in 2.0->2.5, and 3.0
    version 2 of the table was in 2.6+

15 years agoAuthor: Adrian Chadd <adri@squid-cache.org>
Amos Jeffries [Wed, 13 Jan 2010 03:51:47 +0000 (16:51 +1300)] 
Author: Adrian Chadd <adri@squid-cache.org>
Polish SNMP tree generator.

Alters the OID tree creation such that OID are easier for code developers
to manage.

Ported from Squid-2 patch (only applied to Lusca) by Amos Jeffries.

15 years agoCleanup: use libtool/libtdl default location
Amos Jeffries [Wed, 13 Jan 2010 02:03:37 +0000 (15:03 +1300)] 
Cleanup: use libtool/libtdl default location

It is simpler to use the default libltdl location than hiding libtool
away in our custom directory and requiring a bootstrap to set it up.

15 years agoRemove obsolete RunCache/RunAccel scripts.
Amos Jeffries [Wed, 13 Jan 2010 01:59:19 +0000 (14:59 +1300)] 
Remove obsolete RunCache/RunAccel scripts.

RunCache and RunAccel have been obsolete since squid-2.6 parent/child
auto-restart feature was included in the main code.

15 years agoAccount for mem_node overhead inside cache_mem
Amos Jeffries [Wed, 13 Jan 2010 01:53:11 +0000 (14:53 +1300)] 
Account for mem_node overhead inside cache_mem

This makes squid include the overhead memory space when determining the
number of data pages available in cache_mem memory space. Forming a much
better limit on memory cache usage.

This does NOT solve any issues created by sizeof(mem_node) being unaligned
with the system malloc implementation page size. That still needs to be
resolved.

15 years agoFix Kerberos build errors on FreeBSD
Amos Jeffries [Wed, 13 Jan 2010 01:43:14 +0000 (14:43 +1300)] 
Fix Kerberos build errors on FreeBSD

15 years agoDocs: dstdomain is a 'FAST' group ACL.
Amos Jeffries [Wed, 13 Jan 2010 01:24:48 +0000 (14:24 +1300)] 
Docs: dstdomain is a 'FAST' group ACL.

15 years agoRemove optional kerberos/spnegohelp/ library due to licensing issues
Henrik Nordstrom [Sat, 9 Jan 2010 01:13:28 +0000 (02:13 +0100)] 
Remove optional kerberos/spnegohelp/ library due to licensing issues

15 years agoPrep for 3.0.STABLE21
Amos Jeffries [Tue, 22 Dec 2009 05:57:11 +0000 (18:57 +1300)] 
Prep for 3.0.STABLE21

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 16 Dec 2009 01:13:35 +0000 (14:13 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Remove the following ./configure warnings:

  conftest.cpp:34:1: warning: "USE_DISKIO_AIO" redefined
  conftest.cpp:35:1: warning: "USE_DISKIO_DISKTHREADS" redefined

The patch allows Squid v3.1 to build on RHEL 5.4 which has autoconf v2.59.
Without the patch, USE_DISKIO_AIO is zero but the corresponding AIO files
are compiled, leading to errors. I do not know if other platforms are
affected.

15 years agoFix type-punned pointer in forwarding
Amos Jeffries [Wed, 16 Dec 2009 01:12:27 +0000 (14:12 +1300)] 
Fix type-punned pointer in forwarding

15 years agoAuthor: Alex Rousskov <rousskov@measurement-factory.com>
Amos Jeffries [Wed, 16 Dec 2009 01:03:18 +0000 (14:03 +1300)] 
Author: Alex Rousskov <rousskov@measurement-factory.com>
Set timestamps for newly created store entry during ICAP request satisfaction.

If the ICAP-generated response lacks the HTTP Date header, and we do not call
timestampsSet(), Squid says:

WARNING: An error inside Squid has caused an HTTP reply without Date:.

15 years agoBug 2395: FTP errors not displayed
Amos Jeffries [Wed, 16 Dec 2009 01:01:25 +0000 (14:01 +1300)] 
Bug 2395: FTP errors not displayed

* Fix PUT and other errors hanging
* Fix assertion "entry->store_status == STORE_PENDING" caused by FTP
* Several variable-shadowing cases resolved for the fix.

15 years agoAuthor: Jochen Voss <voss@seehuhn.de>
Amos Jeffries [Wed, 16 Dec 2009 00:59:17 +0000 (13:59 +1300)] 
Author: Jochen Voss <voss@seehuhn.de>
Fix failure to reset MD5 context buffer

15 years agoShuffle simple math functions into SquidMath
Amos Jeffries [Wed, 16 Dec 2009 00:56:45 +0000 (13:56 +1300)] 
Shuffle simple math functions into SquidMath

This unlinks many depencies pulled in by tools.cc through the more
complicated permissions, and death reporting code.

15 years agoBug 2830: clarify where NULL byte is in headers.
Amos Jeffries [Wed, 16 Dec 2009 00:51:19 +0000 (13:51 +1300)] 
Bug 2830: clarify where NULL byte is in headers.

Debug printing used to naturally stop string output at the null byte.

This should show the first segment of headers up to the NULL and the
segment of headers after it. So that its clear to admin that there are
more headers _after_ the portion that used to be logged.