Re: [squid-users] client_idle_pconn_timeout - default value

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 19 Nov 2013 22:30:42 +1300

On 19/11/2013 10:02 p.m., gadi wrote:
> Hi,
>
> 1. The default value for version 3.2.13 (at least) is 2 minutes. the default
> keep alive value for apache 2.2 is 5 seconds. Can anyone elaborate on the
> long default keep-alive of squid.

Apache is a web server with a priority focus on delivering all responses
to multiple related objects in a 5-10 second period then releasing
resources for other users. So that it can servie all Internet users in
existence if necessary.

Squid is a proxy designed and tuned to cope with a wide range of old and
slow networks. Providing the clients with what it asked for regardless
of how long the users browser stays idle.

It is just a default, you can change it if you like. Reverse proxies
will serve better with shorter timeouts like Apache. ISP or corporate
proxies will serve better with longer ones like the default (or even
longer).

>
> 2. Would be cool to have adaptive keep-alive that would optimize according
> to specific usage across time...
>

Squid is adaptive to clients TCP level actions (ie disconnecting early).
The idle_timeout, request_timeout and lifetime_timeout are just upper
limits on how long the client masy stay in any one of those transaction
states.

Amos
Received on Tue Nov 19 2013 - 09:30:50 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 19 2013 - 12:00:04 MST