]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
17 years agoMerge from trunk
Alex Rousskov [Sat, 5 Apr 2008 04:54:38 +0000 (22:54 -0600)] 
Merge from trunk

17 years agoMade testheaders.h happy.
Alex Rousskov [Sat, 5 Apr 2008 04:40:38 +0000 (22:40 -0600)] 
Made testheaders.h happy.

17 years agoBug 2267 - increase MAX_URL to 8192
Amos Jeffries [Sat, 5 Apr 2008 02:00:45 +0000 (14:00 +1200)] 
Bug 2267 - increase MAX_URL to 8192

17 years agoMerge from trunk
Alex Rousskov [Fri, 4 Apr 2008 23:06:03 +0000 (17:06 -0600)] 
Merge from trunk

17 years agoWe should probably unlock callback_data in case we did not call the callback.
Alex Rousskov [Fri, 4 Apr 2008 17:14:29 +0000 (11:14 -0600)] 
We should probably unlock callback_data in case we did not call the callback.

17 years agoFixed wrong "this" parameter use after moving adaptation check start code
Alex Rousskov [Fri, 4 Apr 2008 17:11:00 +0000 (11:11 -0600)] 
Fixed wrong "this" parameter use after moving adaptation check start code
from one object to another.

17 years agoMoved AccessCheck object creation and check starting to AccessCheck::Start.
Alex Rousskov [Fri, 4 Apr 2008 16:26:01 +0000 (10:26 -0600)] 
Moved AccessCheck object creation and check starting to AccessCheck::Start.
We may be able to simplify the callers further by migrating to the AsyncJobCall
interface for callbacks.

17 years agoBug 2267 - increase MAX_URL to 8192
Amos Jeffries [Fri, 4 Apr 2008 13:59:45 +0000 (01:59 +1200)] 
Bug 2267 - increase MAX_URL to 8192

17 years agoAdded global Enabled flag to Adaptation::Config so that AccessCheck::Start
Alex Rousskov [Fri, 4 Apr 2008 05:31:40 +0000 (23:31 -0600)] 
Added global Enabled flag to Adaptation::Config so that AccessCheck::Start
can check that instead of becoming dependent on each adaptation mechanism
and its config.onoff setting. Could have created a generic Registry of
all adaptation mechanisms instead.

17 years agoPolished comments
Alex Rousskov [Fri, 4 Apr 2008 04:27:13 +0000 (22:27 -0600)] 
Polished comments

17 years agoApplied --local commits
Alex Rousskov [Thu, 3 Apr 2008 23:26:48 +0000 (17:26 -0600)] 
Applied --local commits

17 years agoIndented and polished.
Alex Rousskov [Thu, 3 Apr 2008 23:20:33 +0000 (17:20 -0600)] 
Indented and polished.

17 years agoCreate an "implicit" SingleService group if an access rule refers to a service
Alex Rousskov [Thu, 3 Apr 2008 23:11:40 +0000 (17:11 -0600)] 
Create an "implicit" SingleService group if an access rule refers to a service
rather than a service group.

17 years agoAdded debugging
Alex Rousskov [Thu, 3 Apr 2008 23:10:04 +0000 (17:10 -0600)] 
Added debugging

17 years agoPolished after removing lib/libLtdl from VCS.
Alex Rousskov [Thu, 3 Apr 2008 21:42:46 +0000 (15:42 -0600)] 
Polished after removing lib/libLtdl from VCS.

17 years agoGot rid of references to libtool.m4 because libtoolize does not require it
Alex Rousskov [Thu, 3 Apr 2008 21:24:07 +0000 (15:24 -0600)] 
Got rid of references to libtool.m4 because libtoolize does not require it
and we want to rely on packager's version anyway (just like with other
autotools-generated or provided files).

17 years agoIgnore and do not version lib/libLtdl because it is libtool-generated.
Alex Rousskov [Thu, 3 Apr 2008 21:19:21 +0000 (15:19 -0600)] 
Ignore and do not version lib/libLtdl because it is libtool-generated.
Ignore cfgaux because it is libtool-generated (merged from trunk).

17 years agoSelectively roll comm_connect_addr part of the Linux leak fix out of trunk.
Amos Jeffries [Thu, 3 Apr 2008 21:12:16 +0000 (09:12 +1200)] 
Selectively roll comm_connect_addr part of the Linux leak fix out of trunk.

The IPAddress and configure parts are left to simplify future testing of why it
does not work in FreeBSD and what went wrong with the sockaddr_storage.

17 years agoAdd netinet/in.h to configure tests for ss_len etc.
Amos Jeffries [Thu, 3 Apr 2008 21:04:37 +0000 (09:04 +1200)] 
Add netinet/in.h to configure tests for ss_len etc.

17 years agoWrap Delay Pools module headers
Amos Jeffries [Thu, 3 Apr 2008 11:56:42 +0000 (23:56 +1200)] 
Wrap Delay Pools module headers

- prevents all compiling and testing of the headers when the component is disabled.

17 years agoAdd more auto-generated files to BZR ignore list.
Amos Jeffries [Thu, 3 Apr 2008 10:32:04 +0000 (22:32 +1200)] 
Add more auto-generated files to BZR ignore list.

17 years agoAttempted fix for FreeBSD run-time socket error "(22) Invalid Object" on connects
Amos Jeffries [Thu, 3 Apr 2008 09:39:06 +0000 (21:39 +1200)] 
Attempted fix for FreeBSD run-time socket error "(22) Invalid Object" on connects

- Sets the ss_len / sin_len / sin6_len fields of sockaddr_* objects
  when retrieved for connection setup.
- Tests the OS at compile time for each of these fields existence to
  cope with some OS (ie Linux) not using or providing them.

17 years agoMerge from trunk
Alex Rousskov [Thu, 3 Apr 2008 05:45:07 +0000 (23:45 -0600)] 
Merge from trunk

17 years agoAdded an adaptation service group API to support groups of services. Current
Alex Rousskov [Thu, 3 Apr 2008 05:31:29 +0000 (23:31 -0600)] 
Added an adaptation service group API to support groups of services. Current
code supports service sets and single-service groups. The former provides a
way to group interchangeable services together so that one (the "best"
available) service is applied to the message. The latter is an internal
feature to allow user to mix service and group names in squid.conf ACLs.
TODO: support service chains (as a service group) and perhaps group of groups.

Moved adaptation access rule state from being shared between ICAPClass and
ICAPAccessCheck classes into a dedicated AccessRule class. This simplifies
both classes and allows for checking access rules in the correct order.

Use group names when linking adaptation access rules to groups. This is less
efficient (especially since we are still using Vector iteration to find a
matching group) but much simpler. TODO: Optimize.

All adaptation services, access rules, and service groups now have a
finalize() method that is called after configuration parsing has been
completed but before the main loop starts. This allows to verify or optimize
name-based links to other services, rules, and groups.

Moved adaptation access check and group classes into their own files.

Added adaptation_service_set squid.conf option, deprecating icap_class. The
new option has more accurate documentation and does not depend on the
adaptation protocol so one can group eCAP and ICAP services.

Added adaptation_service_set squid.conf option, deprecating icap_access. The
new option has more accurate documentation and does not depend on the
adaptation protocol so one can mix-and-match eCAP and ICAP ACL rules.

17 years agoHonor 0x and 0 prefixes as numeric base indication when parsing squid.conf
Alex Rousskov [Thu, 3 Apr 2008 04:41:41 +0000 (22:41 -0600)] 
Honor 0x and 0 prefixes as numeric base indication when parsing squid.conf
integer options.

Squid3 parses squid.conf file integers as decimal numbers while Squid2 honors
0 and 0x prefixes (indicating octal and hex numbers). The later functionality
is needed for things like unmask that are traditionally specified using octal
format.

This patch changes Squid3 behavior to match that of Squid2.
Internally, Squid3 uses sscanf and Squid2 uses strtol.

TODO: Squid3::GetInteger should probably use xatol,
and xatol should be fixed to proper verify the result of strtol.

17 years agoCorrect and simplify parsing of list headers
Henrik Nordstrom [Wed, 2 Apr 2008 00:11:51 +0000 (18:11 -0600)] 
Correct and simplify parsing of list headers

17 years agoIgnore autotool generated files
Henrik Nordstrom [Wed, 2 Apr 2008 00:01:18 +0000 (18:01 -0600)] 
Ignore autotool generated files

17 years agoRemove autotool derived files from trunk, we only need to keep these in STABLE branches.
Henrik Nordstrom [Tue, 1 Apr 2008 23:58:32 +0000 (17:58 -0600)] 
Remove autotool derived files from trunk, we only need to keep these in STABLE branches.

17 years agoSimplify HTTP header list parsing a bit after the changes for Bug #420.
Henrik Nordstrom [Mon, 31 Mar 2008 23:39:06 +0000 (01:39 +0200)] 
Simplify HTTP header list parsing a bit after the changes for Bug #420.

17 years agoBug #420: Deal properly with empty list elements
Henrik Nordstrom [Mon, 31 Mar 2008 23:30:27 +0000 (01:30 +0200)] 
Bug #420: Deal properly with empty list elements

yet another fix to previous commits, this time fixing how to deal with
quoted elements.

17 years agoBug #420: Deal properly with null elements
Henrik Nordstrom [Mon, 31 Mar 2008 23:22:08 +0000 (01:22 +0200)] 
Bug #420: Deal properly with null elements

Bugfix to previous commit. HTTP headers may be folded.

17 years agoBug #420: Deal properly with null elements in lists (Connection and other list headers)
Henrik Nordstrom [Mon, 31 Mar 2008 23:16:39 +0000 (01:16 +0200)] 
Bug #420: Deal properly with null elements in lists (Connection and other list headers)

need to deal with whitespace-only null elements

ConnectIon: , , , X-Delete-Me , , ,

17 years agoAdded generic support for loadable Squid modules or plugins.
Alex Rousskov [Mon, 31 Mar 2008 04:31:48 +0000 (22:31 -0600)] 
Added generic support for loadable Squid modules or plugins.

The "loadable_modules" squid.conf option specifies what shared libraries to
load dynamically. The support is based on libtool's ltdl library, which has
been integrated with Squid prior to this commit, along with the
--enable-loadable-modules ./configure option.

Loaded modules are currently never unloaded, but that may change.

Loadable modules are needed for eCAP, but loadable_modules code deals with
generic module manipulation, independent from eCAP support.

TODO: support cachemgr reporting and reconfiguration.

17 years agoMerge from trunk
Alex Rousskov [Mon, 31 Mar 2008 01:06:13 +0000 (19:06 -0600)] 
Merge from trunk

17 years agoMake libtoolize-generated files writable before updating them, to prevent
Alex Rousskov [Sun, 30 Mar 2008 23:53:13 +0000 (17:53 -0600)] 
Make libtoolize-generated files writable before updating them, to prevent
"mv" from asking the user whether to overwrite those files.

With libtool version 2(?), all this voodoo will become unnecessary.

17 years agoRenamed types and members after moving adaptation-method-agnostic APIs to the
Alex Rousskov [Sun, 30 Mar 2008 19:48:34 +0000 (13:48 -0600)] 
Renamed types and members after moving adaptation-method-agnostic APIs to the
Adaptation namespace and adding support for delayed adaptation service
creation.

17 years agoFinalize adaptation configuration after the config file was parsed.
Alex Rousskov [Sun, 30 Mar 2008 19:44:37 +0000 (13:44 -0600)] 
Finalize adaptation configuration after the config file was parsed.

We may want to make this code adaptation-method-agnostic, but it is not
clear whether hiding adaptation methods from main() is worth the trouble.

17 years agoRenamed types and members after moving adaptation-method-agnostic APIs to the
Alex Rousskov [Sun, 30 Mar 2008 19:40:57 +0000 (13:40 -0600)] 
Renamed types and members after moving adaptation-method-agnostic APIs to the
Adaptation namespace and adding support for delayed adaptation service
creation.

17 years agoAdded new source files.
Alex Rousskov [Sun, 30 Mar 2008 19:38:51 +0000 (13:38 -0600)] 
Added new source files.

17 years agoAdded forward declarations for adaptation-related APIs. This may relax
Alex Rousskov [Sun, 30 Mar 2008 19:35:21 +0000 (13:35 -0600)] 
Added forward declarations for adaptation-related APIs. This may relax
dependencies among header files using adaptation APIs.

17 years agoMoved configuration options that do not depend on the adaptation method
Alex Rousskov [Sun, 30 Mar 2008 19:13:51 +0000 (13:13 -0600)] 
Moved configuration options that do not depend on the adaptation method
from ICAP/ICAPConfig to adaptation/Config. ICAP and eCAP will not share
the same base configuration but will share the same base configuration code
(i.e., there will be two independent ICAPConfig and ecap::Config objects,
but they will have a common parent).

Implemented delayed creation of adaptation services. We used to create
ICAPServiceRep objects when parsing the configuration file.
Create-as-you-parse is imperfect for several reasons, especially if the
services are dynamically loaded as is the case with eCAP. We now remember the
service configuration and then create the actual service object _after_ the
configuration has been parsed and loadable modules, if any, have been loaded.

No functional changes are expected from this change.

17 years agoMoved ICAP/ICAPInit* classes to adaptations/Init* classes.
Alex Rousskov [Sun, 30 Mar 2008 19:06:02 +0000 (13:06 -0600)] 
Moved ICAP/ICAPInit* classes to adaptations/Init* classes.

This move helps Squid core code to manage adaptations without referring
to a specific adaptation mechanism. No functional changes are expected,
although InitiateHolder has been polished to prevent dereferencing of
invalidated Initiator.

17 years agoMoved ICAP/ICAPInit* classes to adaptations/Init* classes.
Alex Rousskov [Sun, 30 Mar 2008 19:00:57 +0000 (13:00 -0600)] 
Moved ICAP/ICAPInit* classes to adaptations/Init* classes.

This move helps Squid core code to manage adaptations without referring
to a specific adaptation mechanism. No functional changes are expected,
although InitiateHolder has been polished to prevent dereferencing of
invalidated Initiator.

17 years agoMoved adaptation-method-independent service-configuration code from
Alex Rousskov [Sun, 30 Mar 2008 18:47:14 +0000 (12:47 -0600)] 
Moved adaptation-method-independent service-configuration code from
ICAPServiceRep to Adaptation::ServiceConfig so that eCAP services can use it.

17 years agoMigrating from ICAP-specific API to generic "adaptation" API.
Alex Rousskov [Sun, 30 Mar 2008 18:20:14 +0000 (12:20 -0600)] 
Migrating from ICAP-specific API to generic "adaptation" API.

Core Squid code should not care about the specific adaptation mechanism in
use.

This change should not affect Squid functinality.

The migration is not complete because the on/off switch is still
ICAP-specific and because comments, debug, and error messages may still
refer to ICAP.

17 years agoBug #420: Fails to parse Connection: ,,,Header,,,
Henrik Nordstrom [Fri, 28 Mar 2008 20:46:41 +0000 (21:46 +0100)] 
Bug #420: Fails to parse Connection: ,,,Header,,,

and other list constructs with empty members

17 years agoFix memset NULL warning in latest comm.cc changes
Henrik Nordstrom [Tue, 25 Mar 2008 15:40:36 +0000 (16:40 +0100)] 
Fix memset NULL warning in latest comm.cc changes

NULL is a NULL pointer, not 0.

17 years agoFix auto-docs in WCCPv2
Amos Jeffries [Tue, 25 Mar 2008 06:32:31 +0000 (18:32 +1200)] 
Fix auto-docs in WCCPv2

17 years agoBootstrapped
Henrik Nordstrom [Tue, 25 Mar 2008 01:10:54 +0000 (19:10 -0600)] 
Bootstrapped

17 years agoExtract service URI scheme and store it as the service protocol. This will
Alex Rousskov [Mon, 24 Mar 2008 15:11:15 +0000 (09:11 -0600)] 
Extract service URI scheme and store it as the service protocol. This will
allow us to distinguish between ICAP and eCAP services, at least in the
begining of eCAP support.

17 years agoFix IPv4 request regression after last commit.
Amos Jeffries [Mon, 24 Mar 2008 05:31:16 +0000 (17:31 +1200)] 
Fix IPv4 request regression after last commit.

Sorry guys.

17 years agoDecoupled eCAP and ICAP ./configuration.
Alex Rousskov [Mon, 24 Mar 2008 04:47:01 +0000 (22:47 -0600)] 
Decoupled eCAP and ICAP ./configuration.
Enable adaptation code if either is enabled.

17 years agoMoving common adaptation code from ICAP/ to adaptation/.
Alex Rousskov [Mon, 24 Mar 2008 04:40:39 +0000 (22:40 -0600)] 
Moving common adaptation code from ICAP/ to adaptation/.

17 years agoFixed adaptation libaries order.
Alex Rousskov [Mon, 24 Mar 2008 04:39:31 +0000 (22:39 -0600)] 
Fixed adaptation libaries order.

17 years agoDo no use icmp_sock when USE_ICMP is not defined.
Alex Rousskov [Mon, 24 Mar 2008 04:20:55 +0000 (22:20 -0600)] 
Do no use icmp_sock when USE_ICMP is not defined.

17 years agoPolished after giving ICAP/ its own Makefile.
Alex Rousskov [Sun, 23 Mar 2008 19:14:06 +0000 (13:14 -0600)] 
Polished after giving ICAP/ its own Makefile.
Removed eCAP hacks from ICAP.

17 years agoMoved ICAP making commands from src/Makefile.am to src/ICAP/Makefile.am
Alex Rousskov [Sun, 23 Mar 2008 17:06:04 +0000 (11:06 -0600)] 
Moved ICAP making commands from src/Makefile.am to src/ICAP/Makefile.am

The move simplifies src/Makefile.am and encapsulates most
ICAP-related stuff in one place.

Also started adding adaptation/ directory that will contain files shared
by ICAP and eCAP. Perhaps the latter two should be moved to adaptation/ ?

17 years agoPolished to move Makfile and other generated matches.
Alex Rousskov [Sun, 23 Mar 2008 16:30:17 +0000 (10:30 -0600)] 
Polished to move Makfile and other generated matches.

Based on "bzr status" output, with manual tweaks.

17 years agoReplace a goto with do-while
Amos Jeffries [Sun, 23 Mar 2008 12:04:09 +0000 (00:04 +1200)] 
Replace a goto with do-while

17 years agoFix memory leak in Linux builds.
Amos Jeffries [Sun, 23 Mar 2008 11:47:50 +0000 (23:47 +1200)] 
Fix memory leak in Linux builds.

17 years agoThis patch cleans up a lot of the whitespace crap which was added by
Henrik Nordstrom [Sat, 22 Mar 2008 01:43:37 +0000 (02:43 +0100)] 
This patch cleans up a lot of the whitespace crap which was added by
astyle.

- spurious blank lines before ;
- named struct{} members had their name on a new line
- bitfields quite messed up

and some minor manual things to avoid compact & empty if constructs not
easily followed.

17 years agoMerged from trunk
Henrik Nordstrom [Sat, 22 Mar 2008 01:05:55 +0000 (02:05 +0100)] 
Merged from trunk

17 years agoRemoved execute bit from various non-executable source files
Henrik Nordstrom [Sat, 22 Mar 2008 00:58:20 +0000 (01:58 +0100)] 
Removed execute bit from various non-executable source files

17 years agoKill obsolete .cvsignore files (not used by bzr)
Henrik Nordstrom [Sat, 22 Mar 2008 00:53:57 +0000 (01:53 +0100)] 
Kill obsolete .cvsignore files (not used by bzr)

17 years agomerged from trunk
Henrik Nordstrom [Sat, 22 Mar 2008 00:43:26 +0000 (01:43 +0100)] 
merged from trunk

17 years agoBug #2278: Cache-Control: max-stale forwarded wrongly as max-stale=-1
Henrik Nordstrom [Fri, 21 Mar 2008 22:51:43 +0000 (23:51 +0100)] 
Bug #2278: Cache-Control: max-stale forwarded wrongly as max-stale=-1

17 years agoFix compile error when ICMP is not enabled
Henrik Nordstrom [Fri, 21 Mar 2008 22:47:56 +0000 (23:47 +0100)] 
Fix compile error when ICMP is not enabled

17 years agoCompile errors in auto-testing.
Amos Jeffries [Fri, 21 Mar 2008 09:45:33 +0000 (21:45 +1200)] 
Compile errors in auto-testing.

Also some auto-documentation.

17 years agoStrip domain from username for squid 3 and delay_pools class4
Amos Jeffries [Fri, 21 Mar 2008 06:01:58 +0000 (18:01 +1200)] 
Strip domain from username for squid 3 and delay_pools class4

Usage in squid.conf:
  auth_param ntlm program /usr/local/libexec/squid/fakeauth_auth -S

And i nave username without domain from ntlm_auth.

17 years agoRemoved generated lib/libLtdl/configure from VCS control
Alex Rousskov [Fri, 21 Mar 2008 05:41:09 +0000 (23:41 -0600)] 
Removed generated lib/libLtdl/configure from VCS control

17 years agoRemoved more generated files from VCS control.
Alex Rousskov [Fri, 21 Mar 2008 05:00:03 +0000 (23:00 -0600)] 
Removed more generated files from VCS control.

17 years agoBootstrapped
Henrik Nordstrom [Fri, 21 Mar 2008 01:10:51 +0000 (19:10 -0600)] 
Bootstrapped

17 years agoMerged from trunk
Henrik Nordstrom [Thu, 20 Mar 2008 23:20:58 +0000 (00:20 +0100)] 
Merged from trunk

17 years agomerged from trunk
Henrik Nordstrom [Thu, 20 Mar 2008 23:13:29 +0000 (00:13 +0100)] 
merged from trunk

17 years agoRemoved Makefile.in from VCS because they are generated. Developers should
Alex Rousskov [Thu, 20 Mar 2008 19:57:39 +0000 (13:57 -0600)] 
Removed Makefile.in from VCS because they are generated. Developers should
know how to generate them. Users will get them from snapshots or trunk.

17 years agoImporting CVS squid3-ecap branch:
Alex Rousskov [Thu, 20 Mar 2008 17:48:37 +0000 (11:48 -0600)] 
Importing CVS squid3-ecap branch:

lib/Makefile.am
        Added libLtdl to SUBDIRS if USE_LOADABLE_MODULES.

src/ICAP/ICAPModXact.h
src/ICAP/ICAPServiceRep.h

        When USE_ECAP_AS_ICAP_HACK macro is defined, enable a temporary
        hack that uses ICAP class names to implement some of the eCAP
        classes. This is necessary to hide eCAP/ICAP distinction from
        Squid core. Hiding the distinction is necessary to avoid
        numerous conflicts when this branch is merged with async call
        branch changes.

        Once the branches are merged, the hack will be removed. Since
        we currently #define eCAP class names to match those of ICAP
        classes, the changes at that time should not be significant:
        remove renaming #defines and adjust autotools meta files to
        allow both ICAP and eCAP co-exist.

configure.in
src/Makefile.am

        Enable eCAP support if loadable module support is enabled.
        Eventually, we may want to control eCAP support directly.

        Added eCAP directory to the Makefile. The eCAP directory
        contents will be committed later.

SPONSORS
        Added eCAP sponsor.

src/Makefile.am
        When eCAP is enabled, to support USE_ECAP_AS_ICAP_HACK, ignore
        ICAP files that eCAP overwrites.

configure.in

        Added --enable-ecap option to control eCAP support explicitly.
        Added consistency checks for the combination of --enable-ecap,
        --enable-icap-client, and --disable-loadable-modules options.

        Define USE_ECAP_AS_ICAP_HACK macro to enable a temporary hack
        that uses ICAP class names to implement some of the eCAP
        classes. This is necessary to hide eCAP/ICAP distinction from
        Squid core. Hiding the distinction is necessary to avoid
        numerous conflicts when this branch is merged with async call
        branch changes.

        Once the branches are merged, the hack will be removed. Since
        we currently #define eCAP class names to match those of ICAP
        classes, the changes at that time should not be significant:
        remove renaming #defines and adjust autotools meta files to
        allow both ICAP and eCAP co-exist.

Makefile.am
acinclude.m4
bootstrap.sh
configure.in
src/Makefile.am

        Added basic support for Libtool ltdl. Libltdl directory is not
        committed yet because I want to investigate whether it can be
        moved from root to lib/. Bootstrap.sh currently strips a large
        copying file from that directory but does not attempt to move
        the directory itself.

        The configure options will need to be changed according to
        squid-dev discussion: we should assume that ltdl is always used
        if modules are used, and we should have a --disable-modules
        option.

        The code works with a dummy module: Squid was able to load and
        unload using LoadableModule, an ltdl wrapper class from Spicer.
        I have not committed that wrapper yet.

Makefile.am
bootstrap.sh
configure.in
src/Makefile.am

        Moved Libtool libltdl directory to lib/libLtdl to keep all
        3rd-party libs in one place. Will commit the lib/libLtdl
        directory itself soon.

        Bootstrap.sh currently moves all files from the generated
        libltdl into lib/libLtdl. A better approach may be to use the
        --ltdl option of libtoolize. Will investigate.

        Changed configure options to assume that ltdl is always used if
        modules are used.

17 years ago3.1 Cleanups pt 1: Add testheaders.sh script
Amos Jeffries [Thu, 20 Mar 2008 11:30:19 +0000 (23:30 +1200)] 
3.1 Cleanups pt 1: Add testheaders.sh script

This script automatically tests all .h files in any directory it is passed
(relative to curent make directory) using the compiler options it is also passed.
It should be integrated in to the unit-testing in every Makefile.am so that
it provides dependancy tree testing of all .h without any additional work by
developers, maintainers, or testers.

3.1 Cleanups, pt 2: Add automatic validation and fix existing problems.

- puts testheaders.sh script to use in many Makefile.am
  (tried for all subdirs tested, but some may have escaped)

- fixes many include problems where .h were not self-sufficient.
  They required .cc or other .h files using them to include additional .h
  Now any given .h will include all objects it requires for compiling.
  (linking is still not guaranteed by this alone)

- References SQUIDHOSTNAMELEN properly as defined by RFC 2181.
  Now also split into a proper rfc2181.h for use.
  (obsoleting many dependencies on squid.h all by itself)

- Migrates dlink_* (squid custom double-linked-list code) into new object.
  (releasing many dependencies on squid.h, structs.h, and protos.h)

- Migrates the SquidConfig* types into SquidConfig.cc, now built into libsquid.la
  (releasing many dependencies on structs.h, and globals.*)

- removes squid.h includes from many unit-tests
  (releasing them from link-dependencies, .o links not yet cleaned up)

17 years agoAt the sprint the issue about our current 10ms main loop timeout came
Henrik Nordstrom [Thu, 20 Mar 2008 05:15:04 +0000 (06:15 +0100)] 
At the sprint the issue about our current 10ms main loop timeout came
up, and it was suggested the problem most likely have been fixed in
HEAD. And even if it hasn't been fixed it's something which should be
fixed rather than plastered over by spinning around on a short timeout
when there is no activity..

This backs out the change to revert the change..

Alex commit reversing the change said:

revno: 8332
committer: rousskov
branch nick: HEAD
timestamp: Tue 2007-07-24 01:55:21 +0000
message:
  Reversed bug #2011 fix because it may slow down ICAP, BodyPipe, and other code
  using zero-delay events to implement "asynchronous" calls.

  The code should probably be rewritten (a) to avoid any waiting/blocking when
  there are ready events and (b) to allow waiting longer when there are no ready
  events.

17 years agoBug #2263: Custom log formats fail to log file sizes >2GB properly on 32-bit platforms
Henrik Nordstrom [Tue, 18 Mar 2008 12:22:30 +0000 (13:22 +0100)] 
Bug #2263: Custom log formats fail to log file sizes >2GB properly on 32-bit platforms

Was partially addressed in squid-3, but only for one of several log format codes
involving object sizes..

17 years agoBootstrapped
Henrik Nordstrom [Tue, 18 Mar 2008 12:20:44 +0000 (06:20 -0600)] 
Bootstrapped

17 years agoBug #2203: configure {--with-maxfd,--with-filedescriptors} unsets LDFLAGS
Amos Jeffries [Tue, 18 Mar 2008 11:58:16 +0000 (23:58 +1200)] 
Bug #2203: configure {--with-maxfd,--with-filedescriptors} unsets LDFLAGS

Moves LDFLAGS save point to a position which covers all FD test code

17 years agoMake range_offset_limit 0 disable local range processing as documented
Henrik Nordstrom [Tue, 18 Mar 2008 00:05:26 +0000 (01:05 +0100)] 
Make range_offset_limit 0 disable local range processing as documented

was prefetching the object and processing ranges locally if the first
range started at 0 ...

17 years agoAdd autotool generated files to ignore list.
Amos Jeffries [Mon, 17 Mar 2008 11:48:33 +0000 (23:48 +1200)] 
Add autotool generated files to ignore list.

17 years agoCleanup yet another astyle artefact where struct {} members have their
Henrik Nordstrom [Sun, 16 Mar 2008 22:10:18 +0000 (23:10 +0100)] 
Cleanup yet another astyle artefact where struct {} members have their
name broken out on a new line.

17 years agoCleanup a lot of whitespace crap, mostl of which introduced by astyle
Henrik Nordstrom [Sun, 16 Mar 2008 21:48:45 +0000 (22:48 +0100)] 
Cleanup a lot of whitespace crap, mostl of which introduced by astyle

17 years agoDisable the dyn & tmp hardcoded settings to allow doxygen to be used
Henrik Nordstrom [Sun, 16 Mar 2008 01:20:56 +0000 (02:20 +0100)] 
Disable the dyn & tmp hardcoded settings to allow doxygen to be used
to build the documentation outside of the web site.

The job updating the web site will need to add these. Can be done with a
simple script
(cat Squid3.dox ; echo HTML_FILE_EXTENSION = .dyn) | doxygen -k

17 years agoIgnore tags (ctags) & tmp (doxygen)
Henrik Nordstrom [Sun, 16 Mar 2008 01:04:58 +0000 (02:04 +0100)] 
Ignore tags (ctags) & tmp (doxygen)

17 years agoignore icons/*.gif
Henrik Nordstrom [Sun, 16 Mar 2008 00:52:20 +0000 (01:52 +0100)] 
ignore icons/*.gif

17 years agoRemove obsolete reference to HttpReply::absorb
Henrik Nordstrom [Sun, 16 Mar 2008 00:50:50 +0000 (01:50 +0100)] 
Remove obsolete reference to HttpReply::absorb

17 years agoUpdate Release Notes to not mention PRE releases.
Amos Jeffries [Fri, 14 Mar 2008 04:26:05 +0000 (17:26 +1300)] 
Update Release Notes to not mention PRE releases.

17 years agoFix 3.0 snapshots
Henrik Nordstrom [Thu, 13 Mar 2008 20:39:40 +0000 (14:39 -0600)] 
Fix 3.0 snapshots

17 years agouse squid-3 snapshot procedure for 3.0
Henrik Nordstrom [Thu, 13 Mar 2008 19:48:38 +0000 (13:48 -0600)] 
use squid-3 snapshot procedure for 3.0

17 years agoBootstrapped
Henrik Nordstrom [Thu, 13 Mar 2008 19:24:51 +0000 (13:24 -0600)] 
Bootstrapped

17 years agoFix snapshot brach names
Henrik Nordstrom [Thu, 13 Mar 2008 19:05:54 +0000 (13:05 -0600)] 
Fix snapshot brach names

17 years agoAdjust snapshot paths and bzr branch names
Henrik Nordstrom [Sat, 8 Mar 2008 13:16:53 +0000 (06:16 -0700)] 
Adjust snapshot paths and bzr branch names

17 years agoBootstrapped
Henrik Nordstrom [Sat, 8 Mar 2008 13:12:38 +0000 (06:12 -0700)] 
Bootstrapped

17 years agoadjust more snapshot paths
Henrik Nordstrom [Sat, 8 Mar 2008 13:11:10 +0000 (06:11 -0700)] 
adjust more snapshot paths

17 years agoAdjust snapshot paths to be consistent
Henrik Nordstrom [Sat, 8 Mar 2008 13:05:35 +0000 (06:05 -0700)] 
Adjust snapshot paths to be consistent

17 years agoAuthor: Massimo Zito <zmax.linkedin at gmail dot com>
Henrik Nordstrom [Fri, 7 Mar 2008 22:37:34 +0000 (15:37 -0700)] 
Author: Massimo Zito <zmax.linkedin at gmail dot com>
squid_radius_auth failed to process more than 256 requests

The radius request-id field is a unsigned char, but the internal request_id
counter was a integer causing mismatch after 256 queries.

17 years agoAuthor: Robert Collins <robertc@robertcollins.net>
Henrik Nordstrom [Fri, 7 Mar 2008 22:10:03 +0000 (15:10 -0700)] 
Author: Robert Collins <robertc@robertcollins.net>

This is most of a changeover of scripts for squid 3 trunk to use bzr;
the missing bit appears to need a bzr 1.1 (to do 'rdiff' basically) or
thereabouts, I'll look into that in a bit. I'm not sure that the
unconverted cvs calls will actually trigger with our current setup or
not.