Re: Help! I am puzzled at "storeclient" :-)

From: Henrik Nordstrom <>
Date: Mon, 8 Apr 2002 16:18:22 +0200

On Monday 08 April 2002 16:03, 马琳 wrote:

> When reading source code, I am puzzled at some of the member
> variables of "_store_client" sturct. I tried hard to find the
> explanations and comments, but failed. They are, " copy_offset",
> "seen_offset", "copy_size", "copy_buf", "swapin_sio" and "node".

Don't look at these ;-), the details of the store_client type is only
of interest to the one implementing the storeClient*() family of
functions. These fields may not be accessed anywhere else.

This is also an area currently being rewritten. You may find a
slightly different picture if you look in Squid-HEAD.

The copy_* and seen_offset variables reflect the current
storeClientCopy() call while Squid is waiting for data to arrive in
the object.

swapin_sio is a lower level filehandle used to access the on-disk
storage. See the programmers guide for a description of a "SIO" and
it's uses.

node is an internal link field used to keep track of the current
store clients I think (haven't looked at the acutal source).

Received on Mon Apr 08 2002 - 08:21:03 MDT

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