回复:Re: Puzzled at "new_StoreEntry"

From: <maer727@dont-contact.us>
Date: Tue, 16 Apr 2002 22:15:45 +0800 (CST)

Thanks, Henrik pal!

From your reply, I think the value of e->timestamp will not
change during its lifetime. Since it stands for the time when
it is received.

Best regards,
George Ma

----- 原文 -----
From: Henrik Nordstrom
To: maer727@sohu.com ;squid-dev@squid-cache.org
Cc: squid-dev@squid-cache.org
Subject: Re: Puzzled at "new_StoreEntry"
Sent: Tue Apr 16 22:04:52 CST 2002

> e->timestamp is the timestamp of the object. Usually when the object was
> retreived.
>
> e->lastref is when the object was last used.
>
> When the StoreEntry is new, before any object has actually been "stored" into
> it, all the timestamps are set to "unknown" (-1).
>
> Regards
> Henrik
>
>
> maer727@sohu.com wrote:
> > Hi, pals!
> >
> > I meet two troubles with the function "new_StoreEntry".
> >
> > Question 1:
> > What is the difference between e->timestamp and e->lastref?
> >
> > For example, in "new_StoreEntry", look at this line,
> > e->expires = e->lastmod = e->lastref = e->timestamp = -1;
> >
> > e->timestamp and e->lastref are initially the same. What is
> > timestamp stands for? Is it the same as e->lastref?
> >
> >
> > Question 2:
> > What is the difference between url and log_url? What do they
> > stand for?
> >
> > Best regards,
> > George, Ma
Received on Tue Apr 16 2002 - 08:15:44 MDT

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