]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
17 years agoBug #2001: Fails to forward responses where headers >4KB
Henrik Nordstrom [Mon, 7 Apr 2008 07:26:08 +0000 (09:26 +0200)] 
Bug #2001: Fails to forward responses where headers >4KB

This changes reply processing to clone the already parsed reply header
instead of trying to parse it yet another time. This allows us to seek
over the header contents and that way get away with just having a 4KB
buffer..

In the long run the store client API will be changed to provide a clean
split between headers and body, providing headers in parsed form (including
intermediary 1xx messages) and then the body starting at offset 0. This
change is a first step along that path but without changing the store client
api as such, with the intention of being merged into 3.0.

17 years agoMerged from trunk
Henrik Nordstrom [Sun, 6 Apr 2008 23:24:20 +0000 (01:24 +0200)] 
Merged from trunk

17 years agoBug 2265: --enable-icmp compile fails on FreeBSD
Amos Jeffries [Sun, 6 Apr 2008 12:40:55 +0000 (00:40 +1200)] 
Bug 2265: --enable-icmp compile fails on FreeBSD
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>

Re-introduces definition of icmphdr/icmp for OS which do not define them.

This code was removed during the initial re-write because it was thought
, incorrectly, to be no longer needed.

17 years agoBug 2299: src/ACLARP.cc fails to compile on Solaris 10
Amos Jeffries [Sun, 6 Apr 2008 12:37:53 +0000 (00:37 +1200)] 
Bug 2299: src/ACLARP.cc fails to compile on Solaris 10
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>

17 years agoWindows port: Released name of Longhorn Server is Windows Server 2008
Guido Serassio [Sun, 6 Apr 2008 09:44:29 +0000 (11:44 +0200)] 
Windows port: Released name of Longhorn Server is Windows Server 2008

17 years agoMerged from trunk
Henrik Nordstrom [Sun, 6 Apr 2008 01:34:08 +0000 (03:34 +0200)] 
Merged from trunk

17 years agoFallback on transparent interception mode even if the connection didn't seem
Henrik Nordstrom [Sun, 6 Apr 2008 01:31:13 +0000 (03:31 +0200)] 
Fallback on transparent interception mode even if the connection didn't seem
to be transparently intercepted

Needed to deal properly with situations where connections to the local host
is intercepted, or when people NAT outside the Squid server but still compile
Squid with support for the NAT/interception method availabe on the host OS..

17 years agoMerged from trunk
Henrik Nordstrom [Sun, 6 Apr 2008 00:51:55 +0000 (02:51 +0200)] 
Merged from trunk

17 years agoBug 2245: cache_dir is not built correctly
Amos Jeffries [Sat, 5 Apr 2008 12:20:44 +0000 (00:20 +1200)] 
Bug 2245: cache_dir is not built correctly

17 years agoCall testheaders.sh with locally detected shell.
Amos Jeffries [Sat, 5 Apr 2008 11:21:54 +0000 (23:21 +1200)] 
Call testheaders.sh with locally detected shell.

Fixes problems where bash shell is not available at /bin/bash

Also replaces some remaining relative paths with the build top dir variable.

17 years agoBug 2286: assertion failed: HttpHdrContRange.cc:100: "spec->length >= 0"
Amos Jeffries [Sat, 5 Apr 2008 10:55:30 +0000 (22:55 +1200)] 
Bug 2286: assertion failed: HttpHdrContRange.cc:100: "spec->length >= 0"
Author: Christos Tsantilos <chtsanti@users.sourceforge.net>

Moves the assertion check for spec->length in function
httpHdrRangeRespSpecParseInit  exactly after the spec->length copmuted.

Also Fix of a possible  misuse of errno in httpHeaderParseOffset function
The errno before used with strtol function must set to "0".

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 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 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 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 agoMerged from trunk
Henrik Nordstrom [Sun, 30 Mar 2008 13:42:54 +0000 (15:42 +0200)] 
Merged from trunk

17 years agoRevert an incorrect removal of flags.storelogiccomplete
Henrik Nordstrom [Sun, 30 Mar 2008 13:34:01 +0000 (15:34 +0200)] 
Revert an incorrect removal of flags.storelogiccomplete

it's a somewhat confusing flag, but needs to be there until the split
of response headers & body is completed.

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 agoMerged from trunk
Henrik Nordstrom [Tue, 25 Mar 2008 15:42:04 +0000 (16:42 +0100)] 
Merged from trunk

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 agoMerged from trunk
Henrik Nordstrom [Tue, 25 Mar 2008 15:32:43 +0000 (16:32 +0100)] 
Merged from trunk

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 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 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 agomerged from trunk
Henrik Nordstrom [Sat, 22 Mar 2008 01:47:25 +0000 (02:47 +0100)] 
merged from trunk

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:11:40 +0000 (02:11 +0100)] 
Merged from trunk

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 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 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 agoKill now obsolete waitForMorData and startSendProcess
Henrik Nordstrom [Sun, 16 Mar 2008 09:15:31 +0000 (10:15 +0100)] 
Kill now obsolete waitForMorData and startSendProcess

17 years agoMerged from trunk
Henrik Nordstrom [Sun, 16 Mar 2008 01:26:11 +0000 (02:26 +0100)] 
Merged from trunk

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 agoMerged from trunk
Henrik Nordstrom [Sun, 16 Mar 2008 01:07:07 +0000 (02:07 +0100)] 
Merged from trunk

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 agoMerged from trunk
Henrik Nordstrom [Sun, 16 Mar 2008 00:53:56 +0000 (01:53 +0100)] 
Merged from trunk

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 agoProperly build a cloned reply, and skip reading of large headers
Henrik Nordstrom [Sat, 15 Mar 2008 23:43:18 +0000 (00:43 +0100)] 
Properly build a cloned reply, and skip reading of large headers

more work remains to fix up the other paths (cache hits, IMS, Vary?)

17 years agoThe cloned HttpReply needs a reference lock
Henrik Nordstrom [Sat, 15 Mar 2008 19:34:36 +0000 (20:34 +0100)] 
The cloned HttpReply needs a reference lock

17 years agoMerged from trunk
Henrik Nordstrom [Sat, 15 Mar 2008 19:12:46 +0000 (20:12 +0100)] 
Merged from trunk

17 years agoignore icons/*.gif
Henrik Nordstrom [Sat, 15 Mar 2008 19:12:06 +0000 (20:12 +0100)] 
ignore icons/*.gif

17 years agoMerged from trunk
Henrik Nordstrom [Sat, 15 Mar 2008 19:10:40 +0000 (20:10 +0100)] 
Merged from trunk

17 years agoMore complete HttpReply::clone() implementation
Henrik Nordstrom [Sat, 15 Mar 2008 19:09:52 +0000 (20:09 +0100)] 
More complete HttpReply::clone() implementation

17 years agoRemove obsolete reference to HttpReply::absorb
Henrik Nordstrom [Sat, 15 Mar 2008 19:05:51 +0000 (20:05 +0100)] 
Remove obsolete reference to HttpReply::absorb

17 years agoFirst stab at header cloning. The motivation behind this is to get rid
Henrik Nordstrom [Sat, 15 Mar 2008 18:03:11 +0000 (19:03 +0100)] 
First stab at header cloning. The motivation behind this is to get rid
of the need of buffering response headers in the server side code
(client_side_reply). A positive sideeffect is that this should also
improve performance considerably.

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.

17 years agoBootstrapped
Henrik Nordstrom [Fri, 7 Mar 2008 21:38:12 +0000 (14:38 -0700)] 
Bootstrapped

17 years agoAdded .bzrignore
Henrik Nordstrom [Fri, 7 Mar 2008 21:37:05 +0000 (14:37 -0700)] 
Added .bzrignore

17 years agoBug 2250: double-freeing memory in http_port name= option code.
amosjeffries [Tue, 4 Mar 2008 19:00:36 +0000 (19:00 +0000)] 
Bug 2250: double-freeing memory in http_port name= option code.

- Seems it was only a strdup / xstrdup problem

17 years agoOptimisation cleanup of fake_auth
amosjeffries [Mon, 3 Mar 2008 14:27:39 +0000 (14:27 +0000)] 
Optimisation cleanup of fake_auth

strlen() is expensive (particularly on large buffers) and is only needed
once here.

17 years agoWindows port: Fix wrong FD read/write CPU profiling.
serassio [Sun, 2 Mar 2008 20:32:24 +0000 (20:32 +0000)] 
Windows port: Fix wrong FD read/write CPU profiling.

17 years agoDOCS: Merge auto-docs branch. p 4
amosjeffries [Wed, 27 Feb 2008 04:54:52 +0000 (04:54 +0000)] 
DOCS: Merge auto-docs branch. p 4

- Remove old SGML documentation.

17 years agoDOCS: Merge auto-docs branch. pt 3
amosjeffries [Wed, 27 Feb 2008 04:51:54 +0000 (04:51 +0000)] 
DOCS: Merge auto-docs branch. pt 3

- Add HTML header/footer stubs

17 years agoMerge auto-docs branch. pt 2
amosjeffries [Wed, 27 Feb 2008 04:49:32 +0000 (04:49 +0000)] 
Merge auto-docs branch. pt 2

- Updates build config (dyn,html) for portable dynamic and static docs
- Merges all code-comment changes
- Updates some function parameter types to reduce silent conversions
- Fixes some typos.
- Migrates some TODO items to the automatic TODO list.

17 years agoReplaced custom letterhead with an XXX note about source code origin.
rousskov [Wed, 27 Feb 2008 01:52:54 +0000 (01:52 +0000)] 
Replaced custom letterhead with an XXX note about source code origin.
Added a TODO to get rid of blatant code duplication.

17 years agoBug #2224 fix: reentrant debugging crashes Squid
rousskov [Wed, 27 Feb 2008 01:44:16 +0000 (01:44 +0000)] 
Bug #2224 fix: reentrant debugging crashes Squid

Synced with src/debug changes.
TODO: Add a note that this file appears to copy debug.cc

17 years agoBug #2224 fix: reentrant debugging crashes Squid
rousskov [Wed, 27 Feb 2008 01:43:58 +0000 (01:43 +0000)] 
Bug #2224 fix: reentrant debugging crashes Squid

Undo a temporary bug #2224 workaround. It is no longer needed because
bug #2224 is fixed.

17 years agoBug #2224 fix: reentrant debugging crashes Squid
rousskov [Wed, 27 Feb 2008 01:43:30 +0000 (01:43 +0000)] 
Bug #2224 fix: reentrant debugging crashes Squid

Reentrant debugging occurs when something being written into the debugging
stream produces its own debugging. For example, a field accessor method may
make cbdata-validation calls, which would produce debugging. Logging such
field would crash Squid if sufficiently high debugging level is enabled.

With this change, the Debug methods detect reentrant calls and mostly ignore
them, allowing the caller to append debugging information to the existing
debug stream. A short debugging label is added before and after the reentrant
debugging message to reduce confusion that overlapping debugging statements
may cause during log analysis.

17 years agoAdded a CPPUNIT assertion to test whether a failed CPPUNIT test case properly
rousskov [Tue, 26 Feb 2008 07:24:00 +0000 (07:24 +0000)] 
Added a CPPUNIT assertion to test whether a failed CPPUNIT test case properly
destructs local objects on exit.

If a previous test case fails for any reason, the new assertion will fail
instead of store_dir.cc aborting.  This may save us from tracking non-existent
StoreController initialization bugs.