回复:Re: Puzzled at clientProcessRequest2 in squid-2.5.PRE6. :-(

From: <maer727@dont-contact.us>
Date: Thu, 18 Apr 2002 20:11:48 +0800 (CST)

Thanks, Joe pal!

You have clarified all my doubtes. :-)

Best regards,
George, Ma

----- 原文 -----
From: Joe Cooper
To: maer727@sohu.com
Cc: squid-dev@squid-cache.org
Subject: Re: Puzzled at clientProcessRequest2 in squid-2.5.PRE6. :-(
Sent: Thu Apr 18 19:54:43 CST 2002

> All 'Config.' variables are set by the configuration file parser on
> startup (some can be reset during a reconfigure).
>
> offline mode is a mode where Squid will only answer HITs, because it
> won't go out to the internet to fetch MISSes.
>
> maer727@sohu.com wrote:
> > Hi, pals!
> >
> > I am using squid-2.5.PRE6, In function clientProcessRequest2,
> > I am puzzled at the following statements,
> > if (Config.onoff.offline) {
> > debug(33, 3) ("clientProcessRequest2: offline HIT
");
> > http->entry = e;
> > return LOG_TCP_HIT;
> > }
> > if (http->redirect.status) {
> > /* force this to be a miss */
> > http->entry = NULL;
> > return LOG_TCP_MISS;
> > }
> > if (!storeEntryValidToSend(e)) {
> > debug(33, 3) ("clientProcessRequest2: !storeEntryValidToSend MISS
");
> > http->entry = NULL;
> > return LOG_TCP_MISS;
> > }
> >
> > What is the meaning and function of Config.onoff.offline, http->redirect.status and storeEntryValidToSend?
> >
> > I think LOG_TCP_HIT indicates a cache HIT and LOG_TCP_MISS indicates a cache MISS.
> > Am I correct?
> >
> > Best regards,
> > George, Ma
> >
> >
>
>
>
> --
> Joe Cooper <joe@swelltech.com>
> http://www.swelltech.com
> Web Caching Appliances and Support
>
Received on Thu Apr 18 2002 - 06:11:58 MDT

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