Re: squid/dial-out-on-demand

From: Dancer <[email protected]>
Date: Thu, 12 Feb 1998 19:46:42 +1000

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.
Received on Thu Feb 12 1998 - 01:53:01 MST

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