]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
19 years agoThe purpose of this change is to add ICAP RESPMOD support for FTP responses.
wessels [Thu, 26 Jan 2006 00:41:23 +0000 (00:41 +0000)] 
The purpose of this change is to add ICAP RESPMOD support for FTP responses.

I created a "ServerStateData" class which has common elements of both
HttpStateData and FtpStateData.  It becomes a base class for both
of them.  ICAP now uses the ServerStateData methods.

19 years agoCorrected port of patch for Bug #577. Issue found by Gonzalo Arana
hno [Wed, 25 Jan 2006 20:16:11 +0000 (20:16 +0000)] 
Corrected port of patch for Bug #577. Issue found by Gonzalo Arana

19 years agochange _ftp_flags from unsigned int:1 to bool.
wessels [Wed, 25 Jan 2006 00:40:11 +0000 (00:40 +0000)] 
change _ftp_flags from unsigned int:1 to bool.

19 years agoRemove whitespace in function args leftover from s///g;
wessels [Wed, 25 Jan 2006 00:38:12 +0000 (00:38 +0000)] 
Remove whitespace in function args leftover from s///g;

19 years agoUpdate MARA Systems sponsor text now that they no longer actively sponsor
hno [Tue, 24 Jan 2006 22:48:29 +0000 (22:48 +0000)] 
Update MARA Systems sponsor text now that they no longer actively sponsor
Squid.

19 years ago64-bit compatibility
hno [Tue, 24 Jan 2006 22:42:27 +0000 (22:42 +0000)] 
64-bit compatibility

19 years agoWorkaround for newer OpenLDAP libraries requiring LDAP_DEPRECATED in order
hno [Tue, 24 Jan 2006 22:41:21 +0000 (22:41 +0000)] 
Workaround for newer OpenLDAP libraries requiring LDAP_DEPRECATED in order
to allow access to the "good old standard" LDAP C-API functions..

19 years agoKill unused nreadfds/nwritefds statistics in comm_poll, eleminating one
hno [Tue, 24 Jan 2006 22:32:02 +0000 (22:32 +0000)] 
Kill unused nreadfds/nwritefds statistics in comm_poll, eleminating one
more reference to fd_set. The delay pool hooks still uses fd_set however
so comm_poll is not yet FD_SETSIZE neutral.

19 years agoMore C++ conversions for ftp.cc
wessels [Tue, 24 Jan 2006 13:35:54 +0000 (13:35 +0000)] 
More C++ conversions for ftp.cc

19 years agocleanup in constructor
wessels [Tue, 24 Jan 2006 12:58:42 +0000 (12:58 +0000)] 
cleanup in constructor

19 years agoFtpStateData constructor was all wrong
wessels [Tue, 24 Jan 2006 12:54:39 +0000 (12:54 +0000)] 
FtpStateData constructor was all wrong

19 years agoStarted converting ftp.cc to use more C++ class methods
wessels [Tue, 24 Jan 2006 12:46:02 +0000 (12:46 +0000)] 
Started converting ftp.cc to use more C++ class methods

19 years agoprotect from double inclusion with #ifndef directives
wessels [Tue, 24 Jan 2006 06:25:59 +0000 (06:25 +0000)] 
protect from double inclusion with #ifndef directives

19 years agoFixed ICAP memory leak. ICAPClientRespmodPrecache no longer has
wessels [Tue, 24 Jan 2006 05:47:56 +0000 (05:47 +0000)] 
Fixed ICAP memory leak.  ICAPClientRespmodPrecache no longer has
to "give up control" of the HttpReply since it is now lock-counted.

19 years agoFix lock-counting bug caused by mixing references with this lock counting
wessels [Tue, 24 Jan 2006 04:36:07 +0000 (04:36 +0000)] 
Fix lock-counting bug caused by mixing references with this lock counting
technique.

Also added locks for HttpReply in ICAPAccessCheck::ICAPAccessCheck()

19 years agoMoved HttpRequest lock/link counter to the base HttpMsg class. This
wessels [Tue, 24 Jan 2006 03:04:24 +0000 (03:04 +0000)] 
Moved HttpRequest lock/link counter to the base HttpMsg class.  This
makes it easy to also lock-count HttpReply instances.

Removed HttpReply::swapOut(), which was a trivial wrapper around
StoreEntry::storeEntryReplaceObject().  Just call storeEntryReplaceObject()
instead.

Removed HttpReply::absorb() which was a hack to deal with the fact that
HttpReply's were not lock-counted.

19 years agoBug #1479: wrong timezone declaration for 64 bit Irix
serassio [Mon, 23 Jan 2006 00:12:52 +0000 (00:12 +0000)] 
Bug #1479: wrong timezone declaration for 64 bit Irix
The declaration of timezone is different between 32 and 64 bit Irix

19 years agoAddedd .cvsignore
serassio [Sun, 22 Jan 2006 23:13:49 +0000 (23:13 +0000)] 
Addedd .cvsignore

19 years agoA static definition of w_space here is no more needed
serassio [Sun, 22 Jan 2006 23:10:00 +0000 (23:10 +0000)] 
A static definition of w_space here is no more needed

19 years agoMy recent ClientBody changes introduced a memory leak. This is awkward
wessels [Fri, 20 Jan 2006 05:15:18 +0000 (05:15 +0000)] 
My recent ClientBody changes introduced a memory leak.  This is awkward
because ConnStateData and ClientBody have references to each other.
ClientBody has a RefCount::Pointer to ConnStateData, which must be NULLed
so the ConnStateData destructor will be called.

19 years agofix for new HttpRequest
wessels [Fri, 20 Jan 2006 05:10:55 +0000 (05:10 +0000)] 
fix for new HttpRequest

19 years agoRename previsouly private HttpRequest:initXX() to initHTTP() and use
wessels [Fri, 20 Jan 2006 01:50:36 +0000 (01:50 +0000)] 
Rename previsouly private HttpRequest:initXX() to initHTTP() and use
it in urlParse().

19 years agoMaking HttpRequest more class-like. Removed some non-class functions such
wessels [Fri, 20 Jan 2006 01:40:28 +0000 (01:40 +0000)] 
Making HttpRequest more class-like.  Removed some non-class functions such
as requestCreate() and requestDestroy() and fixed up the clean/reset mess.

19 years agoTypo in #ifndef #define pair
wessels [Sat, 14 Jan 2006 12:22:49 +0000 (12:22 +0000)] 
Typo in #ifndef #define pair

19 years agoBootstrapped
hno [Sat, 14 Jan 2006 08:10:41 +0000 (08:10 +0000)] 
Bootstrapped

19 years agoBootstrapped after adding src/ClientBody.{h,cc}
wessels [Sat, 14 Jan 2006 07:08:12 +0000 (07:08 +0000)] 
Bootstrapped after adding src/ClientBody.{h,cc}

19 years agoConnStateData and ClientBody was a little confusing. There was some duplication
wessels [Sat, 14 Jan 2006 07:06:19 +0000 (07:06 +0000)] 
ConnStateData and ClientBody was a little confusing.  There was some duplication
with ClientBody members also appearing in ConnStateData.body.   They have been
merged now and ClientBody lives in its own .{cc,h} files.

19 years agoDon't allow ICAP connection reuse if there is a timeout on the socket
wessels [Fri, 13 Jan 2006 01:56:11 +0000 (01:56 +0000)] 
Don't allow ICAP connection reuse if there is a timeout on the socket

19 years agoManagement of {adapated,virgin}->data->header was becoming a problem.
wessels [Thu, 12 Jan 2006 05:40:39 +0000 (05:40 +0000)] 
Management of {adapated,virgin}->data->header was becoming a problem.
One side might delete the header before the other side was done with it.
This patch moves deletion of ->data->header to MsgPipeData class so that
it goes away only when the MsgPipe goes away.

19 years agoincorrectly committed new debugging with wrong levels
wessels [Thu, 12 Jan 2006 05:24:40 +0000 (05:24 +0000)] 
incorrectly committed new debugging with wrong levels

19 years agoC++ typo: extraneous `int' ignored
wessels [Thu, 12 Jan 2006 04:14:33 +0000 (04:14 +0000)] 
C++ typo: extraneous `int' ignored

19 years agoMinor debugging changes to StoreEntry constructor/destructor
wessels [Thu, 12 Jan 2006 04:10:56 +0000 (04:10 +0000)] 
Minor debugging changes to StoreEntry constructor/destructor

19 years agoFixed a couple of bugs with ClientHttpRequest::doCallouts()
wessels [Thu, 12 Jan 2006 04:05:50 +0000 (04:05 +0000)] 
Fixed a couple of bugs with ClientHttpRequest::doCallouts()

- The "no_cache" rule check was never happening because flags.cachable
  was always 0 at that point.  clientInterpretRequestHeaders() must
  be called before doing the "no_cache" checks.

- ClientRequestContext::checkNoCache had an extra cbdataReference() call
  which caused a cbdata leak.

- Converted the *_done flags to bool (instead of single-bit ints).

19 years agoChanged debugging locations for MemObject constructor and destructor
wessels [Thu, 12 Jan 2006 03:59:58 +0000 (03:59 +0000)] 
Changed debugging locations for MemObject constructor and destructor
so they print at the start of the function.

In the destructor there is no need to check that _reply is set because
nobody else deletes it.

19 years agoICAPClientRespmodPrecache::noteSourceStart() should know whether
wessels [Wed, 11 Jan 2006 00:22:06 +0000 (00:22 +0000)] 
ICAPClientRespmodPrecache::noteSourceStart() should know whether
or not to expect an HTTP body and call the appropriate next note
function.

19 years agoMark requireOpenAndActive() as a static function
wessels [Wed, 11 Jan 2006 00:20:22 +0000 (00:20 +0000)] 
Mark requireOpenAndActive() as a static function

19 years agoBugzilla #1463
wessels [Tue, 10 Jan 2006 05:08:50 +0000 (05:08 +0000)] 
Bugzilla #1463

IdentLookup::checkForAsync() should only set asyncInProgress(true)
when actually doing the non-blocking ident lookup.

19 years agoCommiting various debugging statements that have been useful in following
wessels [Tue, 10 Jan 2006 03:47:50 +0000 (03:47 +0000)] 
Commiting various debugging statements that have been useful in following
the flow of an ICAP transaction.

19 years agoA comment about this place where we link request to a mem_obj
wessels [Tue, 10 Jan 2006 03:44:36 +0000 (03:44 +0000)] 
A comment about this place where we link request to a mem_obj

19 years agoThe HttpStateData::abortAdapting() method should always free up
wessels [Tue, 10 Jan 2006 03:42:35 +0000 (03:42 +0000)] 
The HttpStateData::abortAdapting() method should always free up
the HttpStateData, not just when entry is empty.

19 years agoAdded some timeout debugging for ICAP transactions. Since ICAPXaction
wessels [Tue, 10 Jan 2006 03:38:44 +0000 (03:38 +0000)] 
Added some timeout debugging for ICAP transactions.  Since ICAPXaction
doesn't know anything about its derived classes, also added a
HttpMsg::firstLineBuf() method to be used in the debugging of timeouts.

19 years agoThis patch adds sorting to cachemgr:mem output to make it easier to find
wessels [Tue, 10 Jan 2006 03:22:31 +0000 (03:22 +0000)] 
This patch adds sorting to cachemgr:mem output to make it easier to find
classes/objects that leak memory.

19 years agousing requestLink on adapted->data->header fixes an HttpRequest memory
wessels [Tue, 10 Jan 2006 03:17:45 +0000 (03:17 +0000)] 
using requestLink on adapted->data->header fixes an HttpRequest memory
leak with malformed ICAP/HTTP responses.

19 years agoHttpRequest::reset() should preserve link_count
wessels [Tue, 10 Jan 2006 02:59:37 +0000 (02:59 +0000)] 
HttpRequest::reset() should preserve link_count

19 years agoBootstrapped
serassio [Tue, 10 Jan 2006 01:06:03 +0000 (01:06 +0000)] 
Bootstrapped

19 years agoNew file forward.h is missing from make dist
serassio [Tue, 10 Jan 2006 01:02:12 +0000 (01:02 +0000)] 
New file forward.h is missing from make dist

19 years agoForgot to commit http.h after changing HttpStateData constructor
wessels [Thu, 5 Jan 2006 03:29:15 +0000 (03:29 +0000)] 
Forgot to commit http.h after changing HttpStateData constructor

19 years agoconvert an old-style cast to a C++ static cast
wessels [Thu, 5 Jan 2006 01:00:18 +0000 (01:00 +0000)] 
convert an old-style cast to a C++ static cast

19 years agoMoved most of httpStart() into the HttpStateData constructor.
wessels [Thu, 5 Jan 2006 00:54:22 +0000 (00:54 +0000)] 
Moved most of httpStart() into the HttpStateData constructor.

19 years agoFix HTCP after moving httpBuildRequestHeader() to HttpStateData class.
wessels [Thu, 5 Jan 2006 00:19:41 +0000 (00:19 +0000)] 
Fix HTCP after moving httpBuildRequestHeader() to HttpStateData class.

19 years agoOops, forgot to commit changes to this file along with http.cc
wessels [Wed, 4 Jan 2006 06:27:34 +0000 (06:27 +0000)] 
Oops, forgot to commit changes to this file along with http.cc

19 years agoConverting more http.cc functions to class methods
wessels [Wed, 4 Jan 2006 06:26:20 +0000 (06:26 +0000)] 
Converting more http.cc functions to class methods

19 years agoConverted some functions here to static wrappers plus class methods.
wessels [Wed, 4 Jan 2006 06:11:54 +0000 (06:11 +0000)] 
Converted some functions here to static wrappers plus class methods.

Fixed an ICAP bug when reading an HTTP message body and the adapted
response does not need a body.

19 years agoICAP fix: don't call fwd->complete() in HttpStateData::abortAdapting().
wessels [Wed, 4 Jan 2006 04:54:46 +0000 (04:54 +0000)] 
ICAP fix: don't call fwd->complete() in HttpStateData::abortAdapting().
Let the forwarding module decide what to do when its destructor gets
called.

19 years agoChange 'fd=%d' to 'FD %d' in debugging statments to be consistent with
wessels [Wed, 4 Jan 2006 04:47:59 +0000 (04:47 +0000)] 
Change 'fd=%d' to 'FD %d' in debugging statments to be consistent with
the rest of Squid code.

19 years agoBugs from recent FwdState change with --enable-icmp
wessels [Wed, 4 Jan 2006 04:13:27 +0000 (04:13 +0000)] 
Bugs from recent FwdState change with --enable-icmp

19 years agoBugs from recent FwdState change with --enable-cache-digests
wessels [Wed, 4 Jan 2006 04:09:00 +0000 (04:09 +0000)] 
Bugs from recent FwdState change with --enable-cache-digests

19 years agoBug in FwdState destructor. Go back to using a temporary FD value
wessels [Wed, 4 Jan 2006 01:54:32 +0000 (01:54 +0000)] 
Bug in FwdState destructor.  Go back to using a temporary FD value
when closing server_fd.

19 years agoAdded forward.h when converting FwdState to a C++ class
wessels [Wed, 4 Jan 2006 00:27:21 +0000 (00:27 +0000)] 
Added forward.h when converting FwdState to a C++ class

19 years agoConverted FwdState to a C++ class to take advantage of features
wessels [Wed, 4 Jan 2006 00:22:30 +0000 (00:22 +0000)] 
Converted FwdState to a C++ class to take advantage of features
such as refcounting.

19 years agoBootstrapped
hno [Tue, 3 Jan 2006 08:10:49 +0000 (08:10 +0000)] 
Bootstrapped

19 years agoBootstrapped
hno [Sat, 31 Dec 2005 08:10:41 +0000 (08:10 +0000)] 
Bootstrapped

19 years agoGet rid of LDAP libaray references. Not needed or wanted here..
hno [Sat, 31 Dec 2005 06:21:46 +0000 (06:21 +0000)] 
Get rid of LDAP libaray references. Not needed or wanted here..

19 years agoProperly fix snapshot diff
hno [Fri, 30 Dec 2005 09:26:32 +0000 (09:26 +0000)] 
Properly fix snapshot diff

19 years agoFix cleanup of old snapshots again. Got broken some months ago..
hno [Fri, 30 Dec 2005 09:21:19 +0000 (09:21 +0000)] 
Fix cleanup of old snapshots again. Got broken some months ago..

19 years agoFix diff generation
hno [Fri, 30 Dec 2005 09:02:25 +0000 (09:02 +0000)] 
Fix diff generation

19 years agoimported current mksnapshot script from 2.5
hno [Fri, 30 Dec 2005 02:38:16 +0000 (02:38 +0000)] 
imported current mksnapshot script from 2.5

19 years agoSimple debugging message addition and change
wessels [Fri, 30 Dec 2005 01:05:20 +0000 (01:05 +0000)] 
Simple debugging message addition and change

19 years agoFound and fixed a case where HttpMsg::parse() returned false but
wessels [Fri, 30 Dec 2005 01:04:41 +0000 (01:04 +0000)] 
Found and fixed a case where HttpMsg::parse() returned false but
forgot to set the error parameter.

19 years agoFix digest helper split
hno [Thu, 29 Dec 2005 10:16:33 +0000 (10:16 +0000)] 
Fix digest helper split

19 years agoRadius Digest authentication extension draft
hno [Thu, 29 Dec 2005 10:16:03 +0000 (10:16 +0000)] 
Radius Digest authentication extension draft

19 years agoBootstrapped
hno [Thu, 29 Dec 2005 09:49:00 +0000 (09:49 +0000)] 
Bootstrapped

19 years agoFix external acl helper selection again
hno [Thu, 29 Dec 2005 09:48:23 +0000 (09:48 +0000)] 
Fix external acl helper selection again

19 years agosilence automake warning about underquoted macor
hno [Thu, 29 Dec 2005 09:45:57 +0000 (09:45 +0000)] 
silence automake warning about underquoted macor

19 years agoCorrect digest_ldap_auth program name
hno [Thu, 29 Dec 2005 09:43:02 +0000 (09:43 +0000)] 
Correct digest_ldap_auth program name

19 years agoBootstrapped
hno [Thu, 29 Dec 2005 09:42:13 +0000 (09:42 +0000)] 
Bootstrapped

19 years agoDefault to build "all" available helpers of each selected feature
hno [Thu, 29 Dec 2005 09:41:28 +0000 (09:41 +0000)] 
Default to build "all" available helpers of each selected feature
(i.e. build basic auth helpers if basic scheme is enabled etc)

19 years agoDist the Digest LDAP helper
hno [Thu, 29 Dec 2005 09:21:46 +0000 (09:21 +0000)] 
Dist the Digest LDAP helper

19 years agoBootstrapped
hno [Thu, 29 Dec 2005 09:20:17 +0000 (09:20 +0000)] 
Bootstrapped

19 years agoBootstrapped
hno [Thu, 29 Dec 2005 09:20:16 +0000 (09:20 +0000)] 
Bootstrapped

19 years agoExtend the automatic helper selection with a small config.test program in
hno [Thu, 29 Dec 2005 09:15:21 +0000 (09:15 +0000)] 
Extend the automatic helper selection with a small config.test program in
each helper directory determining if this helper is suitable to be built

19 years agoSplit digest_pw_auth into digest_pw_auth and digest_ldap_auth
hno [Thu, 29 Dec 2005 09:11:00 +0000 (09:11 +0000)] 
Split digest_pw_auth into digest_pw_auth and digest_ldap_auth

19 years agoOnly a few changes to debugging messages
wessels [Thu, 29 Dec 2005 05:31:10 +0000 (05:31 +0000)] 
Only a few changes to debugging messages

19 years agoPrint the "GOT HTTP REPLY HDR" message in HttpStateData::processReplyHeader()
wessels [Thu, 29 Dec 2005 04:43:13 +0000 (04:43 +0000)] 
Print the "GOT HTTP REPLY HDR" message in HttpStateData::processReplyHeader()
*before* consuming the HTTP reply headers from readBuf.

Fixed NULL pointer bug in HttpStateData::doneAdapting().  Don't
delete icap before it might be needed.

19 years agoICAP: Don't send preview header if previews are disabled by
wessels [Wed, 28 Dec 2005 23:33:41 +0000 (23:33 +0000)] 
ICAP: Don't send preview header if previews are disabled by
squid.conf.

19 years agoBootstrapped
hno [Wed, 28 Dec 2005 08:10:49 +0000 (08:10 +0000)] 
Bootstrapped

19 years agoBootstrapped
hno [Tue, 27 Dec 2005 08:10:45 +0000 (08:10 +0000)] 
Bootstrapped

19 years agoCannot build using gcc 4.1 with the error:
serassio [Mon, 26 Dec 2005 18:35:22 +0000 (18:35 +0000)] 
Cannot build using gcc 4.1 with the error:

warning: dereferencing type-punned pointer will break strict-aliasing rules

This patch should fix the offending type casts.

19 years agoAdded '-d' command line debugging option
serassio [Mon, 26 Dec 2005 18:18:25 +0000 (18:18 +0000)] 
Added '-d' command line debugging option

19 years agoBootstrapped
serassio [Mon, 26 Dec 2005 17:51:19 +0000 (17:51 +0000)] 
Bootstrapped

19 years agoOptimized src/Makefile.am
serassio [Mon, 26 Dec 2005 17:47:48 +0000 (17:47 +0000)] 
Optimized src/Makefile.am

19 years agoAllow "make check" with --enable-delay-pools configure option
serassio [Mon, 26 Dec 2005 17:16:04 +0000 (17:16 +0000)] 
Allow "make check" with --enable-delay-pools configure option

19 years agoUpdated .cvsignore files
serassio [Sat, 24 Dec 2005 18:23:41 +0000 (18:23 +0000)] 
Updated .cvsignore files

19 years agoBug #1472: wbinfo_group.pl doesn't work with Samba 3.0.21
serassio [Sat, 24 Dec 2005 17:53:06 +0000 (17:53 +0000)] 
Bug #1472: wbinfo_group.pl doesn't work with Samba 3.0.21

wbinfo -n output was changed in Samba 3.0.21, adding a SID description
after the SID value:

giove:~# wbinfo -n Staff
S-1-5-21-682003330-854245398-1708537768-1123 Domain Group (2)

So a little change in the wbinfo_group.pl parsing is needed.

19 years agoerror: extra qualification 'ICAPOptions::' on member 'parseExtFileList
wessels [Sat, 24 Dec 2005 00:36:19 +0000 (00:36 +0000)] 
error: extra qualification 'ICAPOptions::' on member 'parseExtFileList

19 years agoerror: extra qualification 'ICAPConfig::' on member 'findClass'
wessels [Fri, 23 Dec 2005 06:52:28 +0000 (06:52 +0000)] 
error: extra qualification 'ICAPConfig::' on member 'findClass'

19 years agoReuben Farrelly and GCC 4.1 say:
wessels [Fri, 23 Dec 2005 06:40:26 +0000 (06:40 +0000)] 
Reuben Farrelly and GCC 4.1 say:
error: extra qualification 'ICAPXaction::' on member 'reusedConnection

19 years agoMake Squid more robust in the event of unexpected ICAP server responses,
wessels [Fri, 23 Dec 2005 06:09:09 +0000 (06:09 +0000)] 
Make Squid more robust in the event of unexpected ICAP server responses,
in particular RESPMOD responses that don't have a res-hdr section,
or a res-body.

19 years agoSquid incorporates software by other *sources*, not other *sinks*.
wessels [Fri, 23 Dec 2005 05:26:31 +0000 (05:26 +0000)] 
Squid incorporates software by other *sources*, not other *sinks*.

19 years agoRFC 3507 says that there should be a space after comma in
wessels [Fri, 23 Dec 2005 04:29:22 +0000 (04:29 +0000)] 
RFC 3507 says that there should be a space after comma in
the Encapsulated list.