]>
git.ipfire.org Git - thirdparty/squid.git/log
Francesco Chemolli [Sat, 12 Jul 2008 15:51:24 +0000 (17:51 +0200)]
More namespace cleanup.
Francesco Chemolli [Sat, 12 Jul 2008 15:40:56 +0000 (17:40 +0200)]
Cleaned up the namespace some.
Fixed some broken file permisssions.
Francesco Chemolli [Sat, 12 Jul 2008 15:11:10 +0000 (17:11 +0200)]
More cachemanager initialization reshuffling.
Worked around fubar with cpu_profile initialization call.
Francesco Chemolli [Sat, 12 Jul 2008 08:47:19 +0000 (10:47 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Sat, 12 Jul 2008 06:25:45 +0000 (08:25 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Sat, 12 Jul 2008 06:10:14 +0000 (08:10 +0200)]
Merged from trunk
Francesco Chemolli [Sat, 12 Jul 2008 06:07:28 +0000 (08:07 +0200)]
More cache manager initialization calls reshuffling.
Amos Jeffries [Sat, 12 Jul 2008 04:04:12 +0000 (16:04 +1200)]
Mark TODO on icap_access with authentication
icap_access curently treats AUTH_REQUIRED ACL results as a
false-negative 'fail' result. This is not the desired behavior,
but is not bad enough to be treated as an actual bug at this point.
Henrik Nordstrom [Fri, 11 Jul 2008 20:24:53 +0000 (22:24 +0200)]
Workaround for Linux-2.6.24/2.6.25 netfilter_ipv4.h __u32 issue
Henrik Nordstrom [Fri, 11 Jul 2008 20:14:45 +0000 (22:14 +0200)]
Remove a leftover #if USE_CARP
Henrik Nordstrom [Fri, 11 Jul 2008 19:32:10 +0000 (21:32 +0200)]
Remove the --disable-carp option, keeping the CARP code always compiled in
this configure option was a relic from the time when CARP was very intrusive,
requiring --enable-carp to be compiled and then chainging parent relations.
The current CARP implementaiton is very non-intrusive and by default enabled
(but not active unless used in squid.conf). There isn't really any good reason
to why one should use --disable-carp today.
Francesco Chemolli [Fri, 11 Jul 2008 19:17:50 +0000 (21:17 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 19:11:44 +0000 (21:11 +0200)]
More cache manager initialization calls reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 15:50:42 +0000 (17:50 +0200)]
Merged from trunk
Francesco Chemolli [Fri, 11 Jul 2008 15:47:42 +0000 (17:47 +0200)]
More action registration reshuffling.
Amos Jeffries [Fri, 11 Jul 2008 15:15:40 +0000 (03:15 +1200)]
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>
Bug 2253: Assertion in comm closing sequence (pt 1)
Amos Jeffries [Fri, 11 Jul 2008 14:24:10 +0000 (02:24 +1200)]
TestBed: Add master test scripts and some control files
This adds the ./test-builds.sh script which runs over an optional OS
specific control build and a set of layered configurations.
Usage: bash ./test-builds.sh [os-name]
Currently supported OS: debian, ubuntu
A sub-level build script is also added as the main engine of this system.
It takes a pair of control files and attempts a clean build of squid.
Logging as much of the build output as possible for manual oversight.
The component control files are a set of files providing configure options
and environment settings for the build. Their design and use is detailed in:
http://wiki.squid-cache.org/Features/CodeTestBed
Francesco Chemolli [Fri, 11 Jul 2008 12:40:57 +0000 (14:40 +0200)]
More action registration reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 12:34:04 +0000 (14:34 +0200)]
Cache Manager initialization reshuffling.
Francesco Chemolli [Fri, 11 Jul 2008 12:01:55 +0000 (14:01 +0200)]
Moved asndb registration with Cache Manager from main to asn initialization.
Fixed missing refactoring of initialization in netdb.
Amos Jeffries [Fri, 11 Jul 2008 10:09:13 +0000 (22:09 +1200)]
More old compiler support.
Several other unused function returns 'cc' complains about and gcc ignores.
Francesco Chemolli [Fri, 11 Jul 2008 05:47:55 +0000 (07:47 +0200)]
Adjusted some debug levels and output messages.
Francesco Chemolli [Fri, 11 Jul 2008 05:41:39 +0000 (07:41 +0200)]
Merged from trunk
Amos Jeffries [Fri, 11 Jul 2008 01:34:36 +0000 (13:34 +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.
Amos Jeffries [Fri, 11 Jul 2008 01:22:57 +0000 (13:22 +1200)]
Better fix for function return ignoring
Francesco Chemolli [Thu, 10 Jul 2008 18:13:35 +0000 (20:13 +0200)]
Last round of initialization refactoring.
CacheManager is not needed anymore in main.cc
Francesco Chemolli [Thu, 10 Jul 2008 18:08:51 +0000 (20:08 +0200)]
Some more caller refactoring
Francesco Chemolli [Thu, 10 Jul 2008 18:02:23 +0000 (20:02 +0200)]
Refactored delay pools registration
Francesco Chemolli [Thu, 10 Jul 2008 17:59:14 +0000 (19:59 +0200)]
Yet more caller refactoring.
Francesco Chemolli [Thu, 10 Jul 2008 17:33:59 +0000 (19:33 +0200)]
More caller refactoring.
Amos Jeffries [Thu, 10 Jul 2008 13:07:46 +0000 (01:07 +1200)]
Ubuntu support: fix gcc complaints about function results
Fixes Ubuntu package build failure.
Francesco Chemolli [Wed, 9 Jul 2008 21:34:13 +0000 (23:34 +0200)]
Refactored actions for http_headers, events, external_acl, fqdncache
to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 21:14:17 +0000 (23:14 +0200)]
Refactored actions for clientdb, comm_select, dns and idns to
Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:33:02 +0000 (22:33 +0200)]
Refactored actions for comm_poll to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:29:24 +0000 (22:29 +0200)]
Refactored actions for kqueue to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:27:17 +0000 (22:27 +0200)]
Refactored actions for epoll to Cache Manager singleton API.
Fixed issue with cbdata initialization prototype.
Francesco Chemolli [Wed, 9 Jul 2008 20:24:31 +0000 (22:24 +0200)]
Refactored actions for cbdata to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 20:20:14 +0000 (22:20 +0200)]
Refactored actions for "carp" to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 14:38:11 +0000 (16:38 +0200)]
Merged from trunk.
Francesco Chemolli [Wed, 9 Jul 2008 14:28:16 +0000 (16:28 +0200)]
Refactored actions for authentication, I/O, storedir and pconn modules to Cache Manager
singleton API.
Guido Serassio [Wed, 9 Jul 2008 14:21:15 +0000 (16:21 +0200)]
Windows port: Restore _get_osfhandle() usage in FD_CLR and FD_SET macros
Francesco Chemolli [Wed, 9 Jul 2008 14:08:08 +0000 (16:08 +0200)]
Refactored actions "via_headers", "forw_headers" and "asndb" to Cache Manager
singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 14:00:01 +0000 (16:00 +0200)]
Refactored actions "server_list" and "non_peer" to Cache Manager singleton API.
Francesco Chemolli [Wed, 9 Jul 2008 13:51:36 +0000 (15:51 +0200)]
Moved action "config" to singleton API.
Guido Serassio [Wed, 9 Jul 2008 13:12:16 +0000 (15:12 +0200)]
Remove strtok_r() usage because is not available on all platforms
Amos Jeffries [Wed, 9 Jul 2008 11:55:41 +0000 (23:55 +1200)]
Author: Kinkie <gkinkie@gmail.com>
Cleanups: rename List.h to CbDataList.h
include/List.h is in my very humble opinion misleadingly named, as it's
tied to CBDATA semantics and isn't really suited to be used as a generic
container class.
This patch renames the include file to CbDataList.h, and all datatypes
defined there are altered in the same manner.
Guido Serassio [Tue, 8 Jul 2008 09:53:33 +0000 (11:53 +0200)]
Fix typo
Francesco Chemolli [Tue, 8 Jul 2008 06:44:02 +0000 (08:44 +0200)]
Removed comment.
Henrik Nordstrom [Mon, 7 Jul 2008 22:04:12 +0000 (00:04 +0200)]
Minor shell script syntax correction in the --with-build-environment= change
Henrik Nordstrom [Mon, 7 Jul 2008 21:59:57 +0000 (23:59 +0200)]
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.
Henrik Nordstrom [Mon, 7 Jul 2008 11:53:28 +0000 (13:53 +0200)]
auth_param basic&digest utf8 on|of
new utf8 auth_param option to enable UTF-8 translation of the requests
sent to auth helpers. HTTP uses iso-8859-1 in authentication credentials,
but many authentication backends expects UTF-8 as charset.
Note: This does NOT solve the bigger HTTP problem of authentication using
characters outside iso-8859-1, only simlplifies things a bit by allowing
helpers to operate in UTF-8 even when HTTP operates in iso-8859-1.
An alternative would be to add the translation to each helper.
Amos Jeffries [Mon, 7 Jul 2008 04:58:26 +0000 (16:58 +1200)]
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.
Amos Jeffries [Mon, 7 Jul 2008 02:06:43 +0000 (14:06 +1200)]
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 pages
templates themselves to matche the compliance level.
TODO: upgrade all page templates to match.
Francesco Chemolli [Sun, 6 Jul 2008 18:37:49 +0000 (20:37 +0200)]
Added documentation
Francesco Chemolli [Sat, 5 Jul 2008 23:26:10 +0000 (01:26 +0200)]
Documentation.
Francesco Chemolli [Fri, 4 Jul 2008 19:55:59 +0000 (21:55 +0200)]
Merged from trunk
Francesco Chemolli [Fri, 4 Jul 2008 19:51:21 +0000 (21:51 +0200)]
List of actions is now a first-class protected data member of the cachemgr.
MenuCommand constructor has been extended to be able to reach it easily.
Francesco Chemolli [Fri, 4 Jul 2008 19:14:12 +0000 (21:14 +0200)]
Refactored menu action.
Changed cachemgrStateData to protected.
Francesco Chemolli [Fri, 4 Jul 2008 17:25:20 +0000 (19:25 +0200)]
Shortened action classes' names. Since they're private members now, there's
really no need to keep them long.
Francesco Chemolli [Fri, 4 Jul 2008 17:22:13 +0000 (19:22 +0200)]
Command object classes are now members of the CacheManager class.
Converted offline_toggle command.
Francesco Chemolli [Fri, 4 Jul 2008 17:07:03 +0000 (19:07 +0200)]
Turned reconfigure into command object
Amos Jeffries [Fri, 4 Jul 2008 12:09:33 +0000 (00:09 +1200)]
Cleanups: ident.h not included in daily snapshots
self-explaining really. This should get the file incuded as a source
which needs bundling.
Amos Jeffries [Fri, 4 Jul 2008 10:42:57 +0000 (22:42 +1200)]
Rollback: Windows port: cachemgr.cgi should use closesocket not close
Squid-3 OS-specific portability code makes these obsolete.
Kinkie [Fri, 4 Jul 2008 03:13:17 +0000 (05:13 +0200)]
Merged from trunk
Kinkie [Fri, 4 Jul 2008 03:00:36 +0000 (05:00 +0200)]
Refactored shutdown command from legacy-style to object-style
Kinkie [Fri, 4 Jul 2008 02:49:40 +0000 (04:49 +0200)]
Added variant of registration function which takes in an object rather than
a legacy C function.
Kinkie [Thu, 3 Jul 2008 18:29:20 +0000 (20:29 +0200)]
Moved the ActionTable to a Vector. Still Kludgy, but getting better.
Kinkie [Thu, 3 Jul 2008 15:49:47 +0000 (17:49 +0200)]
Moved Action initialization to object constructors.
Amos Jeffries [Thu, 3 Jul 2008 10:19:27 +0000 (22:19 +1200)]
Kill some magic numbers in string definition
Amos Jeffries [Thu, 3 Jul 2008 03:19:59 +0000 (15:19 +1200)]
Windows port: cachemgr.cgi should use closesocket not close (few more)
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
Amos Jeffries [Thu, 3 Jul 2008 03:04:04 +0000 (15:04 +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
Amos Jeffries [Thu, 3 Jul 2008 02:51:24 +0000 (14:51 +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.
Kinkie [Wed, 2 Jul 2008 22:40:26 +0000 (00:40 +0200)]
imported changes from older tree
Amos Jeffries [Wed, 2 Jul 2008 03:49:07 +0000 (15:49 +1200)]
Cleanup: Drop appname and full_appname_string constant globals
appname array only ever held a duplicate of "squid"
- calling it APP_SHORTNAME now instead of a global
full_appname_string only ever held the catenation VERSION"/"PACKAGE macros
- calling it APP_FULLNAME now instead of a global
Amos Jeffries [Wed, 2 Jul 2008 02:46:08 +0000 (14:46 +1200)]
Cleanups: Shuffle ident API into its own header file
This reduces a few more links to protos.h by moving the small ident.c
requirements into ident.h in preparation for modulising that component.
Kinkie [Wed, 2 Jul 2008 00:08:57 +0000 (02:08 +0200)]
Imported changes from old trees.
Guido Serassio [Tue, 1 Jul 2008 10:40:13 +0000 (12:40 +0200)]
Windows port: Fix various build errors
Guido Serassio [Mon, 30 Jun 2008 17:02:39 +0000 (19:02 +0200)]
Windows port: always shutdown winsocks on program termination
WSACleanup() should called always before program termination.
Also ran indent on squid_radius_auth.c.
Guido Serassio [Mon, 30 Jun 2008 16:46:20 +0000 (18:46 +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
Guido Serassio [Mon, 30 Jun 2008 16:27:12 +0000 (18:27 +0200)]
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
Amos Jeffries [Mon, 30 Jun 2008 13:16:14 +0000 (01:16 +1200)]
Bug 2141: Netmasks need to die a clean death (part 1)
Update ACLIP output display to show CIDR instead of netmask format.
With IPv6 masks can be long strings of ff* not easy to read. This makes
them show up as CIDR masks appropriate to the base address type.
Also removes some duplicate code in output (debug show and config mgr).
TODO: parsing updates, in-memory types etc.
Guido Serassio [Mon, 30 Jun 2008 12:52:36 +0000 (14:52 +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.
Also fixed build error on Cygwin
Guido Serassio [Mon, 30 Jun 2008 10:57:35 +0000 (12:57 +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
Kinkie [Mon, 30 Jun 2008 09:58:05 +0000 (11:58 +0200)]
Yet more refactoring.
Kinkie [Mon, 30 Jun 2008 09:45:54 +0000 (11:45 +0200)]
More refactoring: moved some C-style methods to C++ static member functions,
gotten rid of findAction
Kinkie [Mon, 30 Jun 2008 07:08:42 +0000 (09:08 +0200)]
Virtual functions for cachemgr are not really needed, it's not like we're
going to subclass it anyways, especially with the new singleton approach.
Kinkie [Sun, 29 Jun 2008 20:45:58 +0000 (22:45 +0200)]
Yet more refactoring
Kinkie [Sun, 29 Jun 2008 20:29:02 +0000 (22:29 +0200)]
More refactoring, moved C-style methods into C++-style declarations
Kinkie [Sun, 29 Jun 2008 19:55:48 +0000 (21:55 +0200)]
Refactored CacheManager class into a singleton.
Guido Serassio [Sun, 29 Jun 2008 18:46:04 +0000 (20:46 +0200)]
Changed text file format from DOS to Unix
Guido Serassio [Sun, 29 Jun 2008 18:22:27 +0000 (20:22 +0200)]
Added missing reference to reconfigure cachemgr action in squid.conf
Guido Serassio [Sun, 29 Jun 2008 18:15:32 +0000 (20:15 +0200)]
Changed text file format from DOS to Unix
Amos Jeffries [Sun, 29 Jun 2008 13:03:44 +0000 (01:03 +1200)]
Rollback rev 9046-9047. Not quite right.
Amos Jeffries [Sun, 29 Jun 2008 11:53:06 +0000 (23:53 +1200)]
Missed a casting
Amos Jeffries [Sun, 29 Jun 2008 11:20:14 +0000 (23:20 +1200)]
MemBuf may be empty when items are append()'ed.
- Fixes append() to handle the side case where the buffer is empty
just after initialization and before any calls to Printf()
This allows several performance optimisations to follow, since append()
utilizes fast memcpy() and Printf() uses the slower snprintf()
Amos Jeffries [Sun, 29 Jun 2008 02:03:22 +0000 (14:03 +1200)]
Some debugs and auto-doc updates in forwarding
Amos Jeffries [Wed, 25 Jun 2008 12:21:03 +0000 (00:21 +1200)]
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
Henrik Nordstrom [Tue, 24 Jun 2008 22:39:16 +0000 (00:39 +0200)]
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.
Amos Jeffries [Tue, 24 Jun 2008 12:58:36 +0000 (00:58 +1200)]
Bug 2383: part 2: Fix IPv6 --with-* option testing
A small piece of bad logic in the configure code meant the options were
never tested or configured.
Also cleans up the displayed descriptions a little.
Amos Jeffries [Tue, 24 Jun 2008 11:20:15 +0000 (23:20 +1200)]
Improved const correctness in IPAddress.