wessels [Fri, 28 Nov 1997 15:11:58 +0000 (15:11 +0000)]
- StoreEntry didn't need to have the method_t member, so its been
moved to MemObject->method.
- storeEntryListAdd and storeEntryListDelete are quite general. They
have been moved to tools.c and named dlinkAdd() and dlinkDelete().
- we want to be able to cache ALL methods, so store_key_url.c now
always puts the request method into the cache key.
- made StoreEntry->refcount and StoreEntry->flag 16-bit shorts.
wessels [Fri, 28 Nov 1997 15:04:39 +0000 (15:04 +0000)]
- Rename 'icp' functions to 'client' functions
- break clientProcessRequest() into smaller chunks.
- moved setting some request->flags bits into icpParseRequestHeaders()
with the rest of them.
wessels [Tue, 25 Nov 1997 05:32:36 +0000 (05:32 +0000)]
Fixes to get pipelined client requests working better. Need a function
called storeClientPending() whose purpose is to tell the client side
if there is already a callback registered for the entry and the client.
If not, then we'll register one via storeClientCopy(). This is due to
a race condition; when we have pipelined requests, we can not guarantee
that we'll get Deferred in clientSendMoreData() before its time to
send the object off to the client, so the original handler may still
be in place.
wessels [Sat, 22 Nov 1997 00:28:11 +0000 (00:28 +0000)]
From: Henrik Nordstrom <hno@hem.passagen.se>
Here is a small patch to make the generated squid.conf reflect the
configured paths for cache_dir and cache_access_log...
wessels [Fri, 21 Nov 1997 00:48:37 +0000 (00:48 +0000)]
Changed how we account the keepalive ratio. We don't want to
increment keepalives_sent++ when we write the request, because
if we have a large number of requests outstanding, the ratio
will tend towards zero quickly and then we'll stop sending keepalives
on subsequent requests. So now we increment keeepalives_sent when
we get the reply.
wessels [Thu, 20 Nov 1997 13:25:24 +0000 (13:25 +0000)]
Okumoto suggested changes. perl script to generate string arrays
from enums.
protoStart() can be static and should use a switch() instead of
if-else-else
wessels [Tue, 18 Nov 1997 07:47:59 +0000 (07:47 +0000)]
We're coredumping with wierd results on oceana. ->http_ver is set to
some wierd constant and the debugger prints 'Arithmetic error'.
Lets try atof() instead of sscanf().
wessels [Sat, 15 Nov 1997 00:22:09 +0000 (00:22 +0000)]
Fix storeClientCopy2() bug. We can't compare copy_offset to
inmem_hi because for inmem_hi == 0 for swapped out objects. Must
compare object_len instead!
wessels [Sat, 15 Nov 1997 00:20:13 +0000 (00:20 +0000)]
In clientReadRequest(), moved reinstalling the read handler with
commSetSelect() to just after the read(). Due to another bug, there
was a problem in clientReadRequest that we called commSetSelect()
on a FD which had been closed.
wessels [Fri, 14 Nov 1997 23:05:48 +0000 (23:05 +0000)]
Fix 'EOF' bug in storeClientCopy2(). If the client copy offset equals
inmem_hi, and store_status == STORE_OK, then callback with zero size
to indicate EOF.
wessels [Thu, 13 Nov 1997 06:36:19 +0000 (06:36 +0000)]
Ron Gomes fixes.
- Remove USE_PROXY_AUTH and LOG_FULL_HEADERS from Makefile.in
- Fixed log_full_hdrs bug
We can't use pathname_stat() for both default_all() and parsing the
config file. We must check the pathnames only after both the
defaults and the config file have been parsed. DW also made misc
other fixes to cache_cf.c and friends.
wessels [Tue, 11 Nov 1997 04:32:00 +0000 (04:32 +0000)]
OOF! Somehow this bit of logic got lost which releases objects
if the request had an Authorization header, but the reply did NOT
have a Proxy-Revalidate header.