Re: Squid source code

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 04 Jun 1999 21:29:38 +0000

The list is populated during peer selection / ICP pinging. More
specifically in peerSelectFoo().

Squids request processing looks something like

1. Read and decode the request headers from the client
2. Access control
3. Redirection
4. Peer selection, building the linked list of peers to try (where
DIRECT is one kind of peer). Each call to peerAddFwdServer adds another
server to the list.
5. forward.c, forwards the request to the first selected peer
6. protocol specific code.
7. If failure, then forward.c tries the next peer in the list.

--
Henrik Nordstrom
Spare time Squid hacker
Laura M. Padilla wrote:
> 
> Also, when does the fwdState struct get populated with the
> info of the servers to forward the request to?  I  noticed
> there is a linked list of servers and it just picks the next
> one in the list, but where does this list get populated?
Received on Tue Jul 29 2003 - 13:15:58 MDT

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