Re: squid rewrite

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 11 Jun 1997 02:17:19 +0200

--MimeMultipartBoundary
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Stewart Forster wrote:

> Yes, but how do you co-ordinate piggy-backed transfers
> between front-ends simply without using helps of IPC and locking
> and thus non-portable code?

By using the store manager.

On a miss:

Before a frontend fetches a URL, it asks the storemanager for a filename
to store this object to (regardless if it is going to be cached or not).

As soon as it knows that this object is public (can be sent to other
requestors) it tells this to the store manager.

When the next requestor asks the store manager where the object is
located, storemanager answers that the object can be retreived from a
frontend listening on port x using a proxy-only request.

When the original request is complete, storemanager is informed and
subsequent request get the cache file.

All "piggy-back" functionality is kept in the frontend that is doing the
actual transfer, other simply uses this frontend as a proxy.

---
Henrik Nordstr=F6m
--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:41 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:20 MST