wessels [Wed, 20 Jan 1999 03:26:32 +0000 (03:26 +0000)]
We had false loop detections because "ee.lbl.gov" matched "ren.ee.lbl.gov".
Added variable (ThisCache2) that has a space prepended to the hostname
so we now search for " ee.lbl.gov".
wessels [Tue, 19 Jan 1999 13:31:42 +0000 (13:31 +0000)]
fwdStateFree will call storeComplete() if the entry is in
STORE_PENDING state. This can happen in the server-side just
chooses to close the server socket without setting up any
sort of failure information (fwdFail).
wessels [Tue, 19 Jan 1999 05:23:32 +0000 (05:23 +0000)]
sigh. Okay, this might work better.
To "decouple" storeAbort calling into the server side (fwdAbort) and
wreaking havoc, lets have the storeAbort callback done as an event,
thus outside of comm_select loop.
Hopefully this means we don't need the gross "flags.delayed_comm_close"
and current_hdl_fd crap.
Also, since we moved the abort callback to an event, we might end up
doing a server read after the entry has been aborted, but before
the event is called. Thus, the server modules need to check
for ENTRY_ABORTED before reading.
this commit also adds some (temp?) debugging to track open
disk FDs
wessels [Fri, 15 Jan 1999 06:15:43 +0000 (06:15 +0000)]
We used to close persistent connections if the number of free
descriptors was less than four times the reservedFD limit. On
small-FD systems, we will never keep a pconn open because reservedFD
is set to numberFD/4.
wessels [Thu, 14 Jan 1999 05:13:38 +0000 (05:13 +0000)]
From: Dancer <dancer@zeor.simegen.com>
It turns out that if you are using an external authenticator, the
username is only logged on _subsequent_ (that is, cached) authentication
hits. If the user's authentication credentials expire from the cache,
their next (initially authenticated) request doesn't log any user info.
I'm pretty sure that this behaviour is unintentional.
Here's a patch:
wessels [Wed, 13 Jan 1999 06:37:41 +0000 (06:37 +0000)]
- removed storeAbort callback-server side argument
- removed _fde->mode, I guess it was a bad idea anyway
- removed recently added ENTRY_ABORTED checks in server modules
- replaced fwdAbort()
- fixed a mem_obj->request == NULL bug when fwdStart() returns
503 service unavailable.
wessels [Tue, 12 Jan 1999 23:22:16 +0000 (23:22 +0000)]
be more flexible in storeComplete(). instead of asserting that store_status
is STORE_PENDING, if its not, assert that the entry was aborted and
there are zero clients.
wessels [Tue, 12 Jan 1999 06:29:41 +0000 (06:29 +0000)]
deleted ERR_CLIENT_ABORT
added ERR_SHUTTING_DOWN
set theOutIcpConnect = -1 when we close that FD
have fwdStart() return ERR_SHUTTING_DOWN if we are shutting down
the cache
wessels [Tue, 12 Jan 1999 05:54:15 +0000 (05:54 +0000)]
This patch fully transforms proxy_auth into a ACL type, allowing both
allow and deny in any order suitable.
Authentication is requested from the user if:
* proxy_auth is used and no valid authentication header is present.
* wrong password is used
* denied by a proxy_auth ACL
A positive sideeffect is that is is also possible to use deny_info on
proxy_auth ACLs to change the message returned. It also fixes the
problem where proxy_auth user wasn't logged if the proxy_auth user info
wasn't cached.
This patch fully replaces my previous attemt.
There is a small collision with one of my other changes in proto.h, but
I assume that you know how to resolve this.