[squid-users] Squid 4 pconn_lifetime questions

Alex Rousskov rousskov at measurement-factory.com
Tue May 14 14:15:20 UTC 2019


On 5/14/19 8:07 AM, Alex Rousskov wrote:
> On 5/14/19 12:25 AM, johnr wrote:
>> how do the pconn_lifetime and client_idle_pconn_timeout interact?

> There should be virtually no interaction: The former limit is checked
> just when a connection becomes idle and Squid decides whether to pool
> the connection or close it. The latter timeout is checked for the
> already pooled connections.

Correction: The time an idle connection can be pooled is limited by both
pconn_lifetime and *_idle_pconn_timeout. This may be considered as
"interaction".

  lifetime_remaining = pconn_lifetime - actual_connection_lifetime
  maximum_time_in_pool = min(lifetime_remaining, x_idle_pconn_timeout)

Pooled idle connections are closed after maximum_time_in_pool.

Alex.

> GitHub pull requests clarifying documentation are welcomed.


More information about the squid-users mailing list