Re: Joining squid-dev List

From: Mark Nottingham <mnot_at_yahoo-inc.com>
Date: Wed, 19 May 2010 12:14:17 +1000

Well, refreshCheckHTCP() is called when a peer receives a HTCP request, rather than when the HTCP response is evaluated on the sending peer.

RFC2756 defines the semantics as

> RESPONSE codes for TST are as follows:
>
> 0 entity is present in responder's cache
> 1 entity is not present in responder's cache

which to me says that it's simply an indication of whether it's in-cache or not, not whether it's stale. Since the response headers come back on the HTCP response, the querying peer can figure out whether or not it's fresh -- according to its local rules, rather than possibly disparate configuration on the peer being queried.

This isn't an urgent issue for me (usually, my peers are configured identically), it just surprised me a bit when I came across it in the code.

Cheers,

On 19/05/2010, at 5:42 AM, Henrik Nordström wrote:

> tis 2010-05-18 klockan 22:59 +1000 skrev Mark Nottingham:
>
>> Any thoughts about moving where refreshCheck is called for HTCP?
>
> Haen't looked at it. What is the problem?
>
> Regards
> Henrik
>

--
Mark Nottingham       mnot_at_yahoo-inc.com
Received on Wed May 19 2010 - 02:15:10 MDT

This archive was generated by hypermail 2.2.0 : Tue May 25 2010 - 12:00:11 MDT