Re: Re : Re: regarging squid code

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 17 Mar 2003 14:39:44 +0100

mån 2003-03-17 klockan 17.07 skrev atit_ldce:
> Mr. Henrik Nordstrom
>
> thanks for reply...
>
> can u explain in more detail the situation u mentioned for different value for udp_incoming_address and udp_outgoing_address?

child cache -> squid -> parent cache

with different networks to the child and parent caches, and you do not
want ICP to at all listen to requests on the network connecting to the
parent cache (i.e. the Internet connection).

> and one more question as follow..
> what is function of whichPeer? it seems to seach into curren squid conf to identify which peer is matching with arg *from

exactly.

> it is called from peerCheckNetdbDirect() function with &psstate->closest_parent_miss as arg

This is one of many uses where Squid wants to find which peer has a
given address.

> but psstate->closest_parent_miss is assigned value in other function named peerIcpParentMiss and
> peerHtcpParentMiss which are called after peerCheckNetdbDirect()

peerCheckNetdbDirect is called both before and after pinging. There is
one call directly from peerSelectFoo, and another indirect call from
peerGetSomeNeighborReplies.

The first call deals with the optimal situation where it is known that
the RTT is very small and this Squid should go direct, thereby avoiding
useless pinging of the peers in such case.

> so i think value of closest_parent_miss will be unknown ( garbage) at the time of call to which peer

It will be set as "unknown" (all zeros), not garbage.

-- 
Henrik Nordstrom <hno@squid-cache.org>
MARA Systems AB, Sweden
Received on Mon Mar 17 2003 - 06:40:05 MST

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