wessels [Thu, 14 May 1998 22:33:47 +0000 (22:33 +0000)]
Transitioning Cache Digests from "experimental" to fundamental.
Removed a lot of stats collection, espeically large histograms.
Made peerDigestInit() called from an event, instead of being
called directly -- this avoids some recursion.
The selection algorithm is still kind of hard coded as follows:
cache digests
netdb (if CD's miss)
ICP (if netdb has no RTT data)
wessels [Thu, 14 May 1998 03:29:37 +0000 (03:29 +0000)]
cleaned up storeSwapInFileOpened, especially for failure cases.
Call storeReleaseRequest() directly from here to be sure the
bad object gets thrown out.
wessels [Wed, 13 May 1998 02:16:32 +0000 (02:16 +0000)]
eventAdd, eventRun, et al. now check cbdata before making a callback.
If the 'arg' pointer becomes invalid, then the event is NOT run.
Events with NULL 'arg's are always run.
rousskov [Tue, 12 May 1998 00:44:23 +0000 (00:44 +0000)]
- Added binary http headers to requests
- request_t objects are now created and destroyed in a consistent way
- Fixed cache control printf bug
- Added a lot of new http header ids
- Improved Connection: header handling; now both Connection and
Proxy-Connection headers are checked
- Connection request header is now handled correctly regardless
of its position and the number of entries
- Better handling of persistent connection "clues" in HTTP headers
- Removed handling of "length=" directive in IMS headers;
the directive is not in the HTTP/1.1 standard;
standing by for objections
- allowed/denied headers are now checked using bit masks instead of
strcmp loops
- removed Uri: from allowed headers; Uri is deprecated in RFC 2068
- removed processing of Request-Range header (no in specs?)
note: binary headers for requests are not completed:
request_t still keeps and ascii image of the headers
wessels [Sat, 9 May 1998 04:51:03 +0000 (04:51 +0000)]
From: Henrik Nordstrom <hno@hem.passagen.se>
Here is a polished and updated test suite a bit..
* pconn-banger reports a throughtput report, like tcp-banger2
* both tools include support to validate size and a simple checksum
* A couple of pconn-banger bugs fixed.
* Wrote a small perl script that joins a URL list, and a size-checksum
report from tcp-banger to a combined list (needed to use the validation
feature).
Syntax for URL lists is eiter plain 1 URL/line, or
METHOD URL [Request-File|-] [size checksum]
The tools can send HTTP requests with any method or request-body, but
they do not (yet) support HEAD replies.
wessels [Sat, 2 May 1998 04:13:32 +0000 (04:13 +0000)]
From: Andy Powell <lisap@ukoln.ac.uk>
Here is a suggested patch for urn.c in Squid 1.2 beta 20. This patch
causes Squid's URN code to always return an HTTP redirect (by adding a
Location: header to the reply) if the called N2L script only returns a
single URL. (It seems pointless offering the end-user a choice of only one
URL?).
Ignore leading whitespace when looking for requests and server replies,
to make HTTP a bit more robust. Don't bail out if we receive a empty
line where a request-line is expected (a SHOULD in rfc2068).
- added statHistSafeCopy for copying histograms with variable capacity
statHistSafeCopy will not copy old values if capacities differ
statHistSafeCopy is a hack, but "general" solution is hard to find
Removed hacks in peer_select.c for ASN lookups. We cannot delay
wait for IP lookups in the peer selection process, and we do not
want to lookup EVERY address there. Instead, the acl.c routines
will lookup IP addresses for hostnames if they are not available.
So the first time we check some host, it may not match, but should
be present for subsequent requests.