wessels [Fri, 5 Jun 1998 00:57:06 +0000 (00:57 +0000)]
- Renamed proto.c to forward.c
- Connection establishment now done in forward.c; this is the first step
to more significant changes in being more persistent in forwarding
requests.
- Removed most *ConnectDone() functions
- split whois code out of asn.c and into whois.c
rousskov [Wed, 3 Jun 1998 05:29:03 +0000 (05:29 +0000)]
- often entry->timestamp is greater than squid_curtime; perhaps due to clock
de-synchronization with origin server. Set age to 0 in such cases because
"timestamp > squid_curtime" probably means that we just got or revalidated
the object anyway.
rousskov [Wed, 3 Jun 1998 03:50:21 +0000 (03:50 +0000)]
- replaced "<none>" with "nothing" for FTP history escapes. "<none>" is
treated as an unknown HTML tag by a browser and the user gets an empty line
instead of a message that no communication has been recorded.
rousskov [Wed, 3 Jun 1998 03:17:56 +0000 (03:17 +0000)]
- Allow "seen" offset to be greater than "inmem_hi" for pending store entries.
This change allows store clients to "skip" incoming data regardless of
current inmem_hi value. Used in range request processing.
rousskov [Thu, 28 May 1998 04:51:37 +0000 (04:51 +0000)]
- removed ascii headers from reply and request structures
- added more http headers
- fixed content of entity-headers array
- do not update headers with 304 that are not allowed by HTTP/1.1
- moved routines common for request and replies to HttpMsg.c
- rewrote clientBuildReply* and other client_side functions
using new header interface
- code cleanup
- do not cut off "; parameter" from "digitized" Content-Type
http fields
- Added X-Request-URI for persistent connection debugging
wessels [Thu, 28 May 1998 02:31:31 +0000 (02:31 +0000)]
Changes to comm_*_incoming()
Now, there is a single comm_incoming() function. This does NOT use
select/poll. It just calls the read handlers directly for HTTP
and ICP sockets, and relies on them to properly handle EWOULDBLOCK
and friends.
The rate at which comm_incoming gets called is configurable with
'incoming_min_rate' and 'incoming_max_rate'. Note, these are
kind of "backwards" (being rates) and they indicate how many
other FD's to process before calling comm_incoming(). When the load
is none or low, we call comm_incoming at the 'min_rate' which defaults
to once every 16 FDs. During high loads, 'max_rate' takes effect
and the default is every 2nd FD.
Also added a histogram to count how many connections/messages are
processed per call to comm_incoming. This also percipitated some
StatHist.c changes.
rousskov [Wed, 27 May 1998 05:45:32 +0000 (05:45 +0000)]
- Do not send only-if-cached cc directive with requests for peer's digests.
It does not allow fetching digests through neighbores.
We should send only-if-cached when Squid can handle 504 reply correctly.
wessels [Tue, 26 May 1998 23:37:23 +0000 (23:37 +0000)]
event times with 0.0 can "spin" the event queue until it runs
to completion. require a small, non-zero event time so that
other descriptors get a chance too
wessels [Sun, 24 May 1998 09:41:06 +0000 (09:41 +0000)]
Changes to hash_first, hash_next. The **Current idea has bugs, so now
we keep state with a ->next pointer. This simplifies the hash.c code
somewhat, but requires an interface change so that hash_first() only
initializes ->next and does not return a value. Now we always use