Re: squid/dial-out-on-demand

From: Dancer <dancer@dont-contact.us>
Date: Thu, 12 Feb 1998 19:58:11 +1000

Oh, I hasten to add that this impacts directly on the peer selection algorithm. Only use this if you really truly only have one parent, otherwise you will lose considerable flexibility.

D

Dancer wrote:

> Stephane Bortzmeyer wrote:
>
> > On a dial-on-demand network (a PC/Linux runs squid and another one is the Ethernet<->ISDN router), I noticed that Squid doesn't seem to like failures to connect (for instance when the remote router is down). I have to kill -HUP Squid when it happens. Mysterious.
>
> There's an easy fix. Look in neighbors.c in the function peerCheckConnectStart().
> About four lines down you see:
>
> p->tcp_up = 0;
>
> Change the zero to a one, and squid will never mark a peer (parent or neighbour) down, regardless of the error. It'll try every time a request is made.
>
> You might consider the connect_retry patch as well.
>
> D
>
> --
> Did you read the documentation AND the FAQ?
> If not, I'll probably still answer your question, but my patience will
> be limited, and you take the risk of sarcasm and ridicule.

--
Did you read the documentation AND the FAQ?
If not, I'll probably still answer your question, but my patience will
be limited, and you take the risk of sarcasm and ridicule.
Received on Thu Feb 12 1998 - 02:02:04 MST

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