Re: [squid-users] Reduce cache peer connection timeout

From: Paul Ch <sima_yi_at_operamail.com>
Date: Mon, 17 Dec 2012 02:37:28 +0000

Solved. I figured it out.
Added connect-timeout=10 to the cache_peer line.

On Mon, Dec 17, 2012, at 02:02 AM, Paul Ch wrote:
> Hi,
>
> I have a squid 3.2 server setup as a reverse proxy forwarding to several
> web servers.
> If one of these web servers is shut down and a user attempts to access
> it, the client's browser waits 110-120 seconds before displaying the
> ERR_CANNOT_FORWARD message.
>
> I would like to reduce this time down to 15 seconds rather than over 100
> but would still like the ERR_CANNOT_FORWARD message to be displayed.
>
> How would i go about doing this?
>
> I have tried adding forward_timeout 10.00 second to the top of my
> squid.conf file. This works however after 11 seconds, chrome displays
> chrome displays: "No data received" "Error 324(net::ERR_EMPTY_RESPONSE)
> and firefox displays "The connection was reset.".
>
> I would like them to display ERR_CANNOT_FORWARD instead.
>
> I am guessing forward_timeout is not what I want (since its default
> setting is 4 minutes so this is probably not what is happening after 110
> seconds anyway).
>
> Any idea how I can set this up?
>
> Cheers!
>
> --
> http://www.fastmail.fm - Access all of your messages and folders
> wherever you are
>

-- 
http://www.fastmail.fm - Access your email from home and the web
Received on Mon Dec 17 2012 - 02:37:29 MST

This archive was generated by hypermail 2.2.0 : Mon Dec 17 2012 - 12:00:04 MST