]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
19 years agoBlock copy constructor. Not safe.
hno [Wed, 24 May 2006 02:30:48 +0000 (02:30 +0000)] 
Block copy constructor. Not safe.

Should also block the assignment constructor, but it is currently in use
(privately) as part of the reset method.

19 years agocleanup of how the Vary marker object is created
hno [Wed, 24 May 2006 02:29:04 +0000 (02:29 +0000)] 
cleanup of how the Vary marker object is created
to look more like a normal object creation, not violating layers too much

19 years agoFix NULL pointer access with asyncio when Squid starts up over the disk
wessels [Wed, 24 May 2006 00:24:41 +0000 (00:24 +0000)] 
Fix NULL pointer access with asyncio when Squid starts up over the disk
space limit.

We used to call squidaio_init() from DiskThreadsDiskFile::operator new.
But this only gets called when opening a file.  If the first transaction
is to unlink a file, squidaio will be uninitialized.

I didn't see any other good places to call squidaio_init().  For now
I am calling it from within the squidaio module itself at the
start of each open, unlink/truncate, and stat call.

19 years ago-mc command line option to disable memory pools
hno [Tue, 23 May 2006 22:24:55 +0000 (22:24 +0000)] 
-mc command line option to disable memory pools

19 years agoFix a memory corruption when building the magic Vary marker object headers
hno [Tue, 23 May 2006 22:22:34 +0000 (22:22 +0000)] 
Fix a memory corruption when building the magic Vary marker object headers

somehow this cast made things go very bad. Luckily it isn't needed as
we already hold a reference to the reply a few lines earlier.

19 years agoFix --disable-carp
hno [Tue, 23 May 2006 19:33:58 +0000 (19:33 +0000)] 
Fix --disable-carp

19 years agoStoreIOState typedef fixes for Null storage scheme
wessels [Tue, 23 May 2006 06:48:13 +0000 (06:48 +0000)] 
StoreIOState typedef fixes for Null storage scheme

19 years agoBootstrapped
hno [Tue, 23 May 2006 06:44:38 +0000 (06:44 +0000)] 
Bootstrapped

19 years agoStoreIOState updates for COSS
wessels [Tue, 23 May 2006 06:39:32 +0000 (06:39 +0000)] 
StoreIOState updates for COSS

19 years agodbopen configure test typo
hno [Tue, 23 May 2006 06:39:05 +0000 (06:39 +0000)] 
dbopen configure test typo

19 years agoAdded "self" refcounted Pointer parameters to StoreIOState's STRCB, STFNCB,
wessels [Tue, 23 May 2006 06:30:21 +0000 (06:30 +0000)] 
Added "self" refcounted Pointer parameters to StoreIOState's STRCB, STFNCB,
and STIOCB callback functions.  This is so that the StoreIOState
refcount doesn't go to zero during one of these callbacks.

19 years agoDo the dbopen compile test proper to see if -ldb is needed
hno [Tue, 23 May 2006 06:28:14 +0000 (06:28 +0000)] 
Do the dbopen compile test proper to see if -ldb is needed

19 years agoMoved STRCB, STFNCB, STIOCB typdefs to inside StoreIOState class itself.
wessels [Tue, 23 May 2006 06:21:47 +0000 (06:21 +0000)] 
Moved STRCB, STFNCB, STIOCB typdefs to inside StoreIOState class itself.
This should allow us to use these types as parameters in the callbacks.

19 years agoFix COSS so it works with my recent StoreIOState changes.
wessels [Tue, 23 May 2006 06:17:47 +0000 (06:17 +0000)] 
Fix COSS so it works with my recent StoreIOState changes.

19 years agoBootstrapped
hno [Tue, 23 May 2006 03:25:00 +0000 (03:25 +0000)] 
Bootstrapped

19 years agoDo a full compile test of dbopen to see if -ldb is needed
hno [Tue, 23 May 2006 03:22:05 +0000 (03:22 +0000)] 
Do a full compile test of dbopen to see if -ldb is needed

19 years agoFrom 2.5: Properly quote wbinfo arguments, just in case.
hno [Tue, 23 May 2006 02:35:21 +0000 (02:35 +0000)] 
From 2.5: Properly quote wbinfo arguments, just in case.

2.5 commit log reads "Minor fix for Samba-3", but later changes made it
work anyway..

19 years agoMerged storeIOState and StoreIOState into a single StoreIOState
wessels [Tue, 23 May 2006 01:58:51 +0000 (01:58 +0000)] 
Merged storeIOState and StoreIOState into a single StoreIOState
class.  Previously, StoreIOState was just a refcounted storeIOState.

I had concerns that mixed use of refcounted and non-refcounted
StoreIOState may be leading to cases where the object gets referenced
via the old-style pointer after the refcounted version had its count
go to zero and the memory was freed.  This came about while
investigating bugzilla #1465.

removed StoreIOState-related prototypes from protos.h, and removed
some typedefs from typedefs.h.

Modified STFNCB (storeSwapInFileNotify, storeSwapOutFileNotify) and
STIOCB (storeSwapOutFileClosed, storeSwapInFileClosed) so that they
no longer take StoreIOState arguments.  Their "data" arguments
easily lead to the corresponding StoreIOState.  The only thing we
really lose here is the ability to assert that "data->sio" equals
the passed StoreIOState.

19 years agotemporary hack to handle case where body_reader becomes NULL
wessels [Tue, 23 May 2006 01:45:47 +0000 (01:45 +0000)] 
temporary hack to handle case where body_reader becomes NULL
in http module before sendRequestEntity gets called.

19 years agoBootstrapped
hno [Mon, 22 May 2006 06:10:58 +0000 (06:10 +0000)] 
Bootstrapped

19 years agoFix http_range test to run again.
robertc [Sun, 21 May 2006 20:35:11 +0000 (20:35 +0000)] 
Fix http_range test to run again.

19 years agoMinor cleanup of the meta TLV format to not add the incorrect STORE_META_END
hno [Sat, 20 May 2006 19:15:14 +0000 (19:15 +0000)] 
Minor cleanup of the meta TLV format to not add the incorrect STORE_META_END
at the end of the list (list ends by it's size). STORE_META_END has changed
a number of times over the history, and we have never cared about it but some
external tools (i.e. purge) apparently beleives what they read in the docs..

19 years agoMade stream outputting more consistent in Mem::PoolReport. Use a
wessels [Sat, 20 May 2006 06:11:59 +0000 (06:11 +0000)] 
Made stream outputting more consistent in Mem::PoolReport.  Use a
const char * for the column delimiter instead of repeating "\t "
on each line.  Always put the delimiter at the end of the (source code) line.

19 years agoTry to clean up cachemgr 'mem' output. Don't need to double up on
wessels [Sat, 20 May 2006 06:05:02 +0000 (06:05 +0000)] 
Try to clean up cachemgr 'mem' output.  Don't need to double up on
'%' now that we're not using printf.  Use std::setprecision() on some
fields so they don't show up as "1e+01" etc.

19 years agostruct lock_ctrl_t and callback type SIH seem to be unused anywhere
wessels [Sat, 20 May 2006 05:10:20 +0000 (05:10 +0000)] 
struct lock_ctrl_t and callback type SIH seem to be unused anywhere
in the code.

19 years agoConverted storeRelease() to a StoreEntry method.
wessels [Sat, 20 May 2006 02:22:56 +0000 (02:22 +0000)] 
Converted storeRelease() to a StoreEntry method.

19 years agoFully deprecated storeLockObject(). Everything now directly calls the
wessels [Fri, 19 May 2006 23:19:09 +0000 (23:19 +0000)] 
Fully deprecated storeLockObject().  Everything now directly calls the
StoreEntry->lock() method.

19 years agoFully deprecated storeUnlockObject(). Now everything directly uses
wessels [Fri, 19 May 2006 23:05:18 +0000 (23:05 +0000)] 
Fully deprecated storeUnlockObject().  Now everything directly uses
the StoreEntry unlock() method.

19 years agoput correct function names in debugging statements
wessels [Fri, 19 May 2006 22:49:13 +0000 (22:49 +0000)] 
put correct function names in debugging statements

19 years agoThis debugging statement should not be at level 0.
wessels [Fri, 19 May 2006 03:51:10 +0000 (03:51 +0000)] 
This debugging statement should not be at level 0.

19 years agoThe patch for bug #1499 included debugging statments where printf tokens
wessels [Fri, 19 May 2006 02:31:12 +0000 (02:31 +0000)] 
The patch for bug #1499 included debugging statments where printf tokens
did not match time_t type on FreeBSD.  The time_t variables are now cast
in debugging calls.

19 years agoBug #1475: Squid does not need to be limited by FD_SETSIZE when using kqueue/epoll.
hno [Wed, 17 May 2006 03:06:06 +0000 (03:06 +0000)] 
Bug #1475: Squid does not need to be limited by FD_SETSIZE when using kqueue/epoll.

Technically poll doesn't need to be limited either, but is due to the delay
pool hooks still using fd_set...

Inspired by the patch by Gonzalo Arana

19 years agoBug #1501: ftp downloads may last up to read_timeout
hno [Tue, 16 May 2006 22:05:08 +0000 (22:05 +0000)] 
Bug #1501: ftp downloads may last up to read_timeout
by Gonzalo Arana

19 years agoBug #1499: external acls are somewhat broken
hno [Tue, 16 May 2006 11:49:44 +0000 (11:49 +0000)] 
Bug #1499: external acls are somewhat broken
by Gonzalo Arana

19 years agoGive I/O threads a smaller stack.
hno [Mon, 15 May 2006 19:39:57 +0000 (19:39 +0000)] 
Give I/O threads a smaller stack.

19 years agoAdded usage of configure results
serassio [Sun, 14 May 2006 23:07:45 +0000 (23:07 +0000)] 
Added usage of configure results

19 years agoSyslog is not available on all platforms
serassio [Sun, 14 May 2006 22:52:02 +0000 (22:52 +0000)] 
Syslog is not available on all platforms

19 years agoNeed SquidTime for squid_curtime
serassio [Sun, 14 May 2006 22:42:43 +0000 (22:42 +0000)] 
Need SquidTime for squid_curtime

19 years agoBug #1489: add syslog priority and facility to access_log
serassio [Sun, 14 May 2006 17:52:51 +0000 (17:52 +0000)] 
Bug #1489: add syslog priority and facility to access_log

Patch provided by Gonzalo Arana: Thanks !

19 years agoBug# 1430: feature: multi-line directives in squid.conf
serassio [Sun, 14 May 2006 16:19:40 +0000 (16:19 +0000)] 
Bug# 1430: feature: multi-line directives in squid.conf

Patch provided by Gonzalo Arana. Thanks !

19 years agoBug #1347: Modify squid MIB to incorporate squid.conf visible_hostname
serassio [Sun, 14 May 2006 15:22:35 +0000 (15:22 +0000)] 
Bug #1347: Modify squid MIB to incorporate squid.conf visible_hostname

Patch provided by John Horne, thanks !

19 years agoDon't disable assert on PURIFY
hno [Sat, 13 May 2006 03:52:24 +0000 (03:52 +0000)] 
Don't disable assert on PURIFY

19 years agoBug #1553: Memleak in HTCP client code
serassio [Sat, 13 May 2006 01:27:11 +0000 (01:27 +0000)] 
Bug #1553: Memleak in HTCP client code

Forward port of 2.5 changes.

19 years agoFix Cygwin build errors.
serassio [Sat, 13 May 2006 01:14:31 +0000 (01:14 +0000)] 
Fix Cygwin build errors.

19 years agoBug #1532: Mime icons are not displayed when viewing ftp sites when
serassio [Sat, 13 May 2006 01:06:10 +0000 (01:06 +0000)] 
Bug #1532: Mime icons are not displayed when viewing ftp sites when
visible_hostname is a short hostname (without domain).

Forward port of 2.5 changes.

19 years agoBug #1558 (cosmetic): cachmgr leaks a stdio buffer
hno [Fri, 12 May 2006 22:05:10 +0000 (22:05 +0000)] 
Bug #1558 (cosmetic): cachmgr leaks a stdio buffer

19 years agoBootstrapped
hno [Fri, 12 May 2006 06:10:55 +0000 (06:10 +0000)] 
Bootstrapped

19 years agobug: ICAPAccessCheck should use cbdataReference and cbdataReferenceValidDone
wessels [Fri, 12 May 2006 05:53:13 +0000 (05:53 +0000)] 
bug: ICAPAccessCheck should use cbdataReference and cbdataReferenceValidDone
in case the upstream ClientRequestContext goes away during processing.

19 years agoneed to include <netinet/in.h> on FreeBSD for definition of sockaddr_in
wessels [Fri, 12 May 2006 03:41:50 +0000 (03:41 +0000)] 
need to include <netinet/in.h> on FreeBSD for definition of sockaddr_in

19 years agoRefcount::Pointers don't need getRaw() when comparing to NULL
wessels [Fri, 12 May 2006 03:29:02 +0000 (03:29 +0000)] 
Refcount::Pointers don't need getRaw() when comparing to NULL

19 years agobug: clientAbortBody should not try to close the connection
wessels [Fri, 12 May 2006 03:28:29 +0000 (03:28 +0000)] 
bug: clientAbortBody should not try to close the connection
if it is already being closed.

19 years agoNeed config.h before any system heaers
hno [Fri, 12 May 2006 01:59:07 +0000 (01:59 +0000)] 
Need config.h before any system heaers

19 years agoBootstrapped
serassio [Fri, 12 May 2006 01:28:56 +0000 (01:28 +0000)] 
Bootstrapped

19 years agoForgotten to dist SquidTime.h
serassio [Fri, 12 May 2006 01:21:12 +0000 (01:21 +0000)] 
Forgotten to dist SquidTime.h

19 years agoFix copy-paste install dependenices when separating cachemgr & squidclient
hno [Thu, 11 May 2006 18:25:39 +0000 (18:25 +0000)] 
Fix copy-paste install dependenices when separating cachemgr & squidclient
from src

19 years agoBootstrapped
hno [Thu, 11 May 2006 07:41:01 +0000 (07:41 +0000)] 
Bootstrapped

19 years agoMove squidclient and cachemgr from src to tools
hno [Thu, 11 May 2006 07:36:57 +0000 (07:36 +0000)] 
Move squidclient and cachemgr from src to tools

19 years agoNeed SquidTime for squid_curtime
hno [Thu, 11 May 2006 07:14:58 +0000 (07:14 +0000)] 
Need SquidTime for squid_curtime

19 years agoPut squid.h before <iosfwd> to avoid FD_SETSIZE redefined errors
wessels [Thu, 11 May 2006 05:40:38 +0000 (05:40 +0000)] 
Put squid.h before <iosfwd> to avoid FD_SETSIZE redefined errors
with 'make check'

19 years agoBootstrapped
hno [Thu, 11 May 2006 04:59:14 +0000 (04:59 +0000)] 
Bootstrapped

19 years agoUnwind HTCP dependencies
hno [Thu, 11 May 2006 04:56:59 +0000 (04:56 +0000)] 
Unwind HTCP dependencies

19 years agoBootstrapped
hno [Thu, 11 May 2006 04:29:21 +0000 (04:29 +0000)] 
Bootstrapped

19 years agoutil.c depends on assert.c
hno [Thu, 11 May 2006 04:11:34 +0000 (04:11 +0000)] 
util.c depends on assert.c

19 years agoBootstrapped
hno [Thu, 11 May 2006 04:06:42 +0000 (04:06 +0000)] 
Bootstrapped

19 years agoAlso need a generic xassert to go with out assert, to be used by helpers
hno [Thu, 11 May 2006 04:03:07 +0000 (04:03 +0000)] 
Also need a generic xassert to go with out assert, to be used by helpers
etc.

19 years agoBroke out assert define into it's own include. Relied upon by MemPool
hno [Thu, 11 May 2006 03:04:24 +0000 (03:04 +0000)] 
Broke out assert define into it's own include. Relied upon by MemPool

19 years agoTake 2 of the FD_SETSIZE redefined fix.. eleminate the need of squid.h
hno [Thu, 11 May 2006 03:03:04 +0000 (03:03 +0000)] 
Take 2 of the FD_SETSIZE redefined fix.. eleminate the need of squid.h
completely (was only needed for definition of NULL which isn't needed in C++)

19 years agoFix include order to make sure config.h is always first (indirectly via squid.h)
hno [Thu, 11 May 2006 02:39:35 +0000 (02:39 +0000)] 
Fix include order to make sure config.h is always first (indirectly via squid.h)

19 years agoBug 1224 / 1530: Crash related to failed PUT/POST requests where
hno [Thu, 11 May 2006 02:34:18 +0000 (02:34 +0000)] 
Bug 1224 / 1530: Crash related to failed PUT/POST requests where
body processing may close the connection "in the middle" of client
side request processing.

19 years agoBug #1530: Make "foo" a more intuitive error message by just using
hno [Thu, 11 May 2006 02:22:11 +0000 (02:22 +0000)] 
Bug #1530: Make "foo" a more intuitive error message by just using
assert instead.

19 years agoNeed SquidTime.h to squid_curtime
hno [Thu, 11 May 2006 02:17:12 +0000 (02:17 +0000)] 
Need SquidTime.h to squid_curtime

19 years agoRemoved the HttpHeaderEntry constructor that created a "blank" object.
wessels [Wed, 10 May 2006 03:48:51 +0000 (03:48 +0000)] 
Removed the HttpHeaderEntry constructor that created a "blank" object.
It created problems with the parse() method because id had to be set
to something, but none of the http_hdr_type values were really appropriate,
not to mention they either triggered assertions or confused the statistics.

Now parse() is a static method that calls new HttpHeaderEntry after
parsing has been successful.

19 years agoBug #1531: squid crashes short after starting
wessels [Tue, 9 May 2006 23:44:23 +0000 (23:44 +0000)] 
Bug #1531: squid crashes short after starting

When HttpHeaderEntry was converted to a class with methods I added a
constructor that took no arguments. It initialized id to HDR_BAD_HDR.
If header parsing fails, HDR_BAD_HDR triggers an assertion in
the destructor.  As a workaround id is now initialized to HDR_OTHER.

19 years agoThese .cc files need to #include the new SquidTime.h
wessels [Tue, 9 May 2006 21:47:45 +0000 (21:47 +0000)] 
These .cc files need to #include the new SquidTime.h

19 years agobootstrapped
wessels [Tue, 9 May 2006 05:49:25 +0000 (05:49 +0000)] 
bootstrapped

19 years agoMore decoupling work:
robertc [Tue, 9 May 2006 05:38:33 +0000 (05:38 +0000)] 
More decoupling work:
 Add a URL and URLScheme class to allow separating the url parsing logic from
 HTTPRequest logic which are currently bi-dependent.
 Add HttpRequestMethod class to replace the enum method_t, start using it.
 Split squid_curtime out from globals and tools, so you can get access to time
 without dragging in other dependencies.

19 years agoFix diskd debugging to print the correct unlink function name, either
wessels [Tue, 9 May 2006 05:05:45 +0000 (05:05 +0000)] 
Fix diskd debugging to print the correct unlink function name, either
unlink or truncate.

19 years agoadded .dirstamp
wessels [Tue, 9 May 2006 03:00:05 +0000 (03:00 +0000)] 
added .dirstamp

19 years agoconverted httpHeaderEntry functions to class methods
wessels [Tue, 9 May 2006 02:59:28 +0000 (02:59 +0000)] 
converted httpHeaderEntry functions to class methods

19 years agobugfix: Diskd has a loop that puts Squid to sleep for small amounts of
wessels [Tue, 9 May 2006 01:57:30 +0000 (01:57 +0000)] 
bugfix: Diskd has a loop that puts Squid to sleep for small amounts of
time when the queues size reach a threshhold.  The time-to-sleep is
supposed to double each time through the loop, but struct timeval delay
was initialized inside the loop, rather than outside, which meant it
always slept for 1 microsecond.

19 years agoClean up some recently-added debugging messages.
wessels [Tue, 9 May 2006 00:22:03 +0000 (00:22 +0000)] 
Clean up some recently-added debugging messages.

19 years agoA new fix for the bug when FwdState reference count goes to zero
wessels [Mon, 8 May 2006 23:37:34 +0000 (23:37 +0000)] 
A new fix for the bug when FwdState reference count goes to zero
during a re-forward attempt.

19 years agoclient_side_reply.h doesn't need to #include forward.h any more.
wessels [Mon, 8 May 2006 23:22:32 +0000 (23:22 +0000)] 
client_side_reply.h doesn't need to #include forward.h any more.

19 years agoBootstrapped
hno [Mon, 8 May 2006 06:10:51 +0000 (06:10 +0000)] 
Bootstrapped

19 years agoBug #767: Problem making Squid 3.0 PRE3 64 bit
serassio [Sun, 7 May 2006 21:18:39 +0000 (21:18 +0000)] 
Bug #767: Problem making Squid 3.0 PRE3 64 bit

Final fix for %llu problem on HP Tru64.

19 years agoBacked out change where clientReplyContext held a FwdState::Pointer.
wessels [Sun, 7 May 2006 21:13:24 +0000 (21:13 +0000)] 
Backed out change where clientReplyContext held a FwdState::Pointer.
That change was to fix problems with re-forwarded reqeusts where
the FwdState refcount would go to zero.  But it also introduced a new
bug where errors would not be sent to clients because the refcount
did NOT go to zero.

19 years agoBootstrapped
serassio [Sun, 7 May 2006 20:06:44 +0000 (20:06 +0000)] 
Bootstrapped

19 years agoForgotten CXXFLAGS for --with-large-files
serassio [Sun, 7 May 2006 20:04:39 +0000 (20:04 +0000)] 
Forgotten CXXFLAGS for --with-large-files

19 years agoBootstrapped
serassio [Sun, 7 May 2006 16:23:28 +0000 (16:23 +0000)] 
Bootstrapped

19 years agoAdded missing size checks from 2.5
serassio [Sun, 7 May 2006 16:20:43 +0000 (16:20 +0000)] 
Added missing size checks from 2.5

19 years ago- Forward ported from 2.5 the updated large file build environment support (bug ...
serassio [Sun, 7 May 2006 16:17:25 +0000 (16:17 +0000)] 
- Forward ported from 2.5 the updated large file build environment support (bug #437)
- Cosmetic cleanup

19 years agoBootstrapped
hno [Sun, 7 May 2006 06:10:47 +0000 (06:10 +0000)] 
Bootstrapped

19 years agoConverted most other httpHeader*() functions to HttpHeader class methods.
wessels [Sun, 7 May 2006 04:38:13 +0000 (04:38 +0000)] 
Converted most other httpHeader*() functions to HttpHeader class methods.

19 years agoConverted most other httpHeader*() functions to HttpHeader class methods.
wessels [Sun, 7 May 2006 04:23:44 +0000 (04:23 +0000)] 
Converted most other httpHeader*() functions to HttpHeader class methods.

19 years agoConverted most other httpHeader*() functions to HttpHeader class methods.
wessels [Sun, 7 May 2006 04:13:18 +0000 (04:13 +0000)] 
Converted most other httpHeader*() functions to HttpHeader class methods.

19 years agoFixed testHttpRequest with --enable-referer-log & --enable-useragent-log and
serassio [Sat, 6 May 2006 18:38:01 +0000 (18:38 +0000)] 
Fixed testHttpRequest with --enable-referer-log & --enable-useragent-log and
when GNUregex is needed.

19 years agoUnbreak compiling on g++3.3
robertc [Sat, 6 May 2006 07:30:45 +0000 (07:30 +0000)] 
Unbreak compiling on g++3.3

19 years agoconverted httpHeaderClean() to HttpHeader::clean()
wessels [Sat, 6 May 2006 05:57:40 +0000 (05:57 +0000)] 
converted httpHeaderClean() to HttpHeader::clean()

19 years agoFix for recent "clientReplyContext keeps a FwdState refcount" patch.
wessels [Sat, 6 May 2006 05:36:40 +0000 (05:36 +0000)] 
Fix for recent "clientReplyContext keeps a FwdState refcount" patch.
I missed the more common case where fwdStart() was called.

19 years agonew feature: squid -k restart
wessels [Sat, 6 May 2006 05:33:21 +0000 (05:33 +0000)] 
new feature: squid -k restart

It allows the built-in parent "watcher" process to automatically
and immediately restart Squid.

-k restart uses SIGTTIN.  It is almost the same as -k shutdown
except that it sets the exit status to 1 (instead of 0).  Since the
exit status is non-zero, the parent (watcher) will start squid again
immediately.

-k restart is not supported on systems that dont have SIGTTIN.