]>
git.ipfire.org Git - thirdparty/squid.git/log
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.
wessels [Tue, 10 Jan 2006 02:59:37 +0000 (02:59 +0000)]
HttpRequest::reset() should preserve link_count
serassio [Tue, 10 Jan 2006 01:06:03 +0000 (01:06 +0000)]
Bootstrapped
serassio [Tue, 10 Jan 2006 01:02:12 +0000 (01:02 +0000)]
New file forward.h is missing from make dist
wessels [Thu, 5 Jan 2006 03:29:15 +0000 (03:29 +0000)]
Forgot to commit http.h after changing HttpStateData constructor
wessels [Thu, 5 Jan 2006 01:00:18 +0000 (01:00 +0000)]
convert an old-style cast to a C++ static cast
wessels [Thu, 5 Jan 2006 00:54:22 +0000 (00:54 +0000)]
Moved most of httpStart() into the HttpStateData constructor.
wessels [Thu, 5 Jan 2006 00:19:41 +0000 (00:19 +0000)]
Fix HTCP after moving httpBuildRequestHeader() to HttpStateData class.
wessels [Wed, 4 Jan 2006 06:27:34 +0000 (06:27 +0000)]
Oops, forgot to commit changes to this file along with http.cc
wessels [Wed, 4 Jan 2006 06:26:20 +0000 (06:26 +0000)]
Converting more http.cc functions to 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.
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.
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.
wessels [Wed, 4 Jan 2006 04:13:27 +0000 (04:13 +0000)]
Bugs from recent FwdState change with --enable-icmp
wessels [Wed, 4 Jan 2006 04:09:00 +0000 (04:09 +0000)]
Bugs from recent FwdState change with --enable-cache-digests
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.
wessels [Wed, 4 Jan 2006 00:27:21 +0000 (00:27 +0000)]
Added forward.h when converting FwdState to a C++ class
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.
hno [Tue, 3 Jan 2006 08:10:49 +0000 (08:10 +0000)]
Bootstrapped
hno [Sat, 31 Dec 2005 08:10:41 +0000 (08:10 +0000)]
Bootstrapped
hno [Sat, 31 Dec 2005 06:21:46 +0000 (06:21 +0000)]
Get rid of LDAP libaray references. Not needed or wanted here..
hno [Fri, 30 Dec 2005 09:26:32 +0000 (09:26 +0000)]
Properly fix snapshot diff
hno [Fri, 30 Dec 2005 09:21:19 +0000 (09:21 +0000)]
Fix cleanup of old snapshots again. Got broken some months ago..
hno [Fri, 30 Dec 2005 09:02:25 +0000 (09:02 +0000)]
Fix diff generation
hno [Fri, 30 Dec 2005 02:38:16 +0000 (02:38 +0000)]
imported current mksnapshot script from 2.5
wessels [Fri, 30 Dec 2005 01:05:20 +0000 (01:05 +0000)]
Simple debugging message addition and change
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.
hno [Thu, 29 Dec 2005 10:16:33 +0000 (10:16 +0000)]
Fix digest helper split
hno [Thu, 29 Dec 2005 10:16:03 +0000 (10:16 +0000)]
Radius Digest authentication extension draft
hno [Thu, 29 Dec 2005 09:49:00 +0000 (09:49 +0000)]
Bootstrapped
hno [Thu, 29 Dec 2005 09:48:23 +0000 (09:48 +0000)]
Fix external acl helper selection again
hno [Thu, 29 Dec 2005 09:45:57 +0000 (09:45 +0000)]
silence automake warning about underquoted macor
hno [Thu, 29 Dec 2005 09:43:02 +0000 (09:43 +0000)]
Correct digest_ldap_auth program name
hno [Thu, 29 Dec 2005 09:42:13 +0000 (09:42 +0000)]
Bootstrapped
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)
hno [Thu, 29 Dec 2005 09:21:46 +0000 (09:21 +0000)]
Dist the Digest LDAP helper
hno [Thu, 29 Dec 2005 09:20:17 +0000 (09:20 +0000)]
Bootstrapped
hno [Thu, 29 Dec 2005 09:20:16 +0000 (09:20 +0000)]
Bootstrapped
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
hno [Thu, 29 Dec 2005 09:11:00 +0000 (09:11 +0000)]
Split digest_pw_auth into digest_pw_auth and digest_ldap_auth
wessels [Thu, 29 Dec 2005 05:31:10 +0000 (05:31 +0000)]
Only a few changes to debugging messages
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.
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.
hno [Wed, 28 Dec 2005 08:10:49 +0000 (08:10 +0000)]
Bootstrapped
hno [Tue, 27 Dec 2005 08:10:45 +0000 (08:10 +0000)]
Bootstrapped
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.
serassio [Mon, 26 Dec 2005 18:18:25 +0000 (18:18 +0000)]
Added '-d' command line debugging option
serassio [Mon, 26 Dec 2005 17:51:19 +0000 (17:51 +0000)]
Bootstrapped
serassio [Mon, 26 Dec 2005 17:47:48 +0000 (17:47 +0000)]
Optimized src/Makefile.am
serassio [Mon, 26 Dec 2005 17:16:04 +0000 (17:16 +0000)]
Allow "make check" with --enable-delay-pools configure option
serassio [Sat, 24 Dec 2005 18:23:41 +0000 (18:23 +0000)]
Updated .cvsignore files
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.
wessels [Sat, 24 Dec 2005 00:36:19 +0000 (00:36 +0000)]
error: extra qualification 'ICAPOptions::' on member 'parseExtFileList
wessels [Fri, 23 Dec 2005 06:52:28 +0000 (06:52 +0000)]
error: extra qualification 'ICAPConfig::' on member 'findClass'
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
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.
wessels [Fri, 23 Dec 2005 05:26:31 +0000 (05:26 +0000)]
Squid incorporates software by other *sources*, not other *sinks*.
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.
wessels [Wed, 21 Dec 2005 06:22:29 +0000 (06:22 +0000)]
Fixed an ICAP bug: Need to handle the case when a REQMOD reply
doesn't have any new HTTP headers.
wessels [Tue, 20 Dec 2005 12:23:59 +0000 (12:23 +0000)]
The check for "connection: close" in the ICAP header
belongs in parseIcapHead() rather than parseHead().
wessels [Tue, 20 Dec 2005 12:15:10 +0000 (12:15 +0000)]
Initialize the members of HttpRequest in the constructor so that
we don't get errors on free() when the clean() method is called.
wessels [Tue, 20 Dec 2005 06:06:54 +0000 (06:06 +0000)]
inserting HERE into some debugs()
wessels [Tue, 20 Dec 2005 05:00:47 +0000 (05:00 +0000)]
Added "HERE" macro for use in debugs() and use it in a few ICAP
debugging messages.
wessels [Tue, 20 Dec 2005 04:44:26 +0000 (04:44 +0000)]
Look for "Connection: close" in OPTIONS response too.
serassio [Sun, 18 Dec 2005 17:07:49 +0000 (17:07 +0000)]
Fixed warning when using gcc 4.x
serassio [Sun, 18 Dec 2005 16:57:59 +0000 (16:57 +0000)]
visible_appname_string must be initialized during FS tests.
serassio [Sun, 18 Dec 2005 16:23:39 +0000 (16:23 +0000)]
Updated "make check" support:
- Added Negotiate schema support
- Allow 'make check' with --enable-ssl
- Updated new HttpReply class usage
hno [Fri, 16 Dec 2005 08:10:45 +0000 (08:10 +0000)]
Bootstrapped
hno [Fri, 16 Dec 2005 05:25:24 +0000 (05:25 +0000)]
Need to dist pconn.h
wessels [Wed, 14 Dec 2005 06:37:39 +0000 (06:37 +0000)]
Just a little cleanup of an ICAP_CLIENT ifdef
wessels [Wed, 14 Dec 2005 05:17:02 +0000 (05:17 +0000)]
Added a default ICAP Options-TTL setting.
wessels [Wed, 14 Dec 2005 05:11:07 +0000 (05:11 +0000)]
Don't print a Warning about OPTIONS reply method mismatch if the
OPTIONS reply doesn't have a Methods header.
wessels [Wed, 14 Dec 2005 04:41:57 +0000 (04:41 +0000)]
Finished support for parsing ICAP OPTIONS Transfer-* headers.
Squid does not yet use the Transfer-* extensions to make ICAP forwarding
decisions.
wessels [Wed, 14 Dec 2005 01:38:05 +0000 (01:38 +0000)]
Report ICAP server clock skew based on the Date header in OPTIONS response.
To make this work I added timestamp() and ttl() methods to ICAPOptions
and renamed the private members.
wessels [Wed, 14 Dec 2005 00:32:34 +0000 (00:32 +0000)]
Support for Method header in ICAP OPTIONS respose.
Currently the 'icap_service' directive in squid.conf specifies both the
URI and method. The ICAP server also returns the method in the OPTIONS
response. This could create a conflict if the user specifies the wrong
method for a service.
For now we trust the squid.conf value and issue a warning if the OPTIONS
response reports a different method.
wessels [Tue, 13 Dec 2005 07:01:02 +0000 (07:01 +0000)]
I get compile errors on many tests because Squid defines its own assert()
macro. I find that it works better (ie compiles on FreeBSD) when
squid.h is the first include. Then the compiler won't define its own
assert macro if Squid gets there first.
wessels [Tue, 13 Dec 2005 01:28:12 +0000 (01:28 +0000)]
Changed Mem::Init() debug message "Memory pools are ..." to level 3 since
it is really annoying to have it show up on stderr in cron jobs etc.
wessels [Tue, 13 Dec 2005 00:51:23 +0000 (00:51 +0000)]
Memory leak when using ident_lookup_access. The temporary ident
hash table key was not freed.
serassio [Sun, 11 Dec 2005 17:00:47 +0000 (17:00 +0000)]
Bug #1022: bad credentials fetch (no user)
This problem is triggered only when using the --enable-ntlm-fail-open
configure option.
wessels [Fri, 9 Dec 2005 23:03:23 +0000 (23:03 +0000)]
During debugging I lowered the cbadata lock_count assertion threshold
so that it would trigger faster. The change should have never been
committed.
wessels [Fri, 9 Dec 2005 08:02:24 +0000 (08:02 +0000)]
Compile-time bug introduced in recent changes related to
ACLCheckList::fastCheck(). The declaration for checklist was moved
to an inner block, but it was still used outside.
wessels [Fri, 9 Dec 2005 03:08:46 +0000 (03:08 +0000)]
Fixed a bug and some confusion with ACLChecklist::fastCheck()
- Added cbdataReferenceDone(accessList) call to fastCheck() in the
"if finished()" block.
- peerAllowedToUse() was setting accessList = NULL after calling
fastCheck(). Since neither fastCheck() nor peerAllowedToUse()
were calling cbdataReferenceDone(), the cbdata lock_count would
never decrease and eventually hit an assertion.
- In general, the fastCheck() callers do not need to call
cbdataReferenceDone, nor set accessList to NULL. The
cbdataReferenceDone() call should always happen in fastCheck().
If not, it will happen in the ACLCheckList destructor.
- It might be even better if fastCheck() called cbdataReference()
as well, to avoid this situation where locking happens in one
place and unlocking in another. This is future work, however.
wessels [Fri, 9 Dec 2005 01:33:55 +0000 (01:33 +0000)]
removed extra ;
wessels [Wed, 7 Dec 2005 06:03:34 +0000 (06:03 +0000)]
Turned pconn.cc into C++ classes. There are now separate persistent
connection pools for client-side, server-side, and now ICAP.
Accounting for persistent connection use still sucks because HTTP
(http.c) and ICAP state structures don't have any way to keep track
of how many times a given TCP connection was used. So we'll keep
abusing fd_entry[] for this purpose.
wessels [Tue, 6 Dec 2005 07:01:23 +0000 (07:01 +0000)]
Bugzilla #1457
My changes to the way that the client-side performed http_access,
redirector, and no_cache checks introduced a serious bug. Using
any proxy authentication would crash Squid.
One problem was that clientAccessCheckDone() should have returned
after generating the error page. Instead it tried to keep going,
as though access were allowed.
The other problem was due to a recently added assertion, which was
incorrect. Instead of asserting, the ClientRequestContext destructor
now releases its lock on the parent ClientHttpRequest if necessary.
wessels [Sun, 4 Dec 2005 01:00:28 +0000 (01:00 +0000)]
Forgot to check the value of 'icap_enable' (TheICAPConfig.onoff)
when ICAP code was compiled in, but should not be called.
serassio [Sat, 3 Dec 2005 22:13:51 +0000 (22:13 +0000)]
Allow the build using VisualStudio 2005 when LEAKFINDER is not defined.
hno [Sat, 3 Dec 2005 08:10:57 +0000 (08:10 +0000)]
Bootstrapped
wessels [Sat, 3 Dec 2005 02:43:38 +0000 (02:43 +0000)]
Some additions and changes for ICAP server connection reuse.
wessels [Sat, 3 Dec 2005 00:05:53 +0000 (00:05 +0000)]
Squid binary should depend on ICAP library. bootstrapped.
wessels [Fri, 2 Dec 2005 06:23:59 +0000 (06:23 +0000)]
A few changes related to how the ICAP request header is built:
- Added 'icap_persistent_connections' directive to squid.conf to turn
on/off ICAP server connection reuse.
- Renamed 'icap_send_auth_user' directive to 'icap_send_client_username'
- Removed 'icap_auth_scheme' directive since it is not currently used.
- Fixed ICAPModXact::makeRequestHeaders() to add X-Client-IP and
X-Client-Username only when those options are enabled in squid.conf.
wessels [Fri, 2 Dec 2005 06:19:22 +0000 (06:19 +0000)]
Removing the 'icap_check_interval' directive because it isn't used
in the current implemenation.
wessels [Fri, 2 Dec 2005 05:40:34 +0000 (05:40 +0000)]
Add X-Client-IP and X-Client-Username extention headers to ICAP
requests.
wessels [Fri, 2 Dec 2005 05:39:46 +0000 (05:39 +0000)]
Add comment explaining why there is 'break' in the loop that looks for
candidate classes during ACL checks.
serassio [Fri, 2 Dec 2005 04:35:40 +0000 (04:35 +0000)]
Bug #1451: gcc 4.1 compiler errors
Fix provided by Klaus Singvogel, Thanks !!!
wessels [Fri, 2 Dec 2005 02:06:46 +0000 (02:06 +0000)]
Bug fixed by Ralf Horstmann:
ICAPClass constructor should initialize accessList to NULL.
wessels [Fri, 2 Dec 2005 01:15:51 +0000 (01:15 +0000)]
update comment for HttpMsg::parseCharBuf()
hno [Wed, 30 Nov 2005 08:10:42 +0000 (08:10 +0000)]
Bootstrapped
serassio [Wed, 30 Nov 2005 03:18:20 +0000 (03:18 +0000)]
Bug #1409: OpenBSD and NetBSD error on make with SSL include
Workaround for OpenSSL 0.9.7d.
serassio [Wed, 30 Nov 2005 01:13:58 +0000 (01:13 +0000)]
Bootstrapped