From: Tom Hughes Date: Sun, 13 Oct 2019 10:48:33 +0000 (+0100) Subject: Limit persistent connections to five minutes for squid 4 X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/42f2f59723dcb9d3ee30bc5879744047a962c41a Limit persistent connections to five minutes for squid 4 --- diff --git a/cookbooks/squid/templates/default/squid.conf.erb b/cookbooks/squid/templates/default/squid.conf.erb index fbb07641f..817fd5072 100644 --- a/cookbooks/squid/templates/default/squid.conf.erb +++ b/cookbooks/squid/templates/default/squid.conf.erb @@ -51,6 +51,9 @@ persistent_request_timeout 1 minutes <% else -%> client_idle_pconn_timeout 1 minutes <% end -%> +<% if node[:squid][:version] > 3 -%> +pconn_lifetime 5 minutes +<% end -%> negative_ttl 15 seconds half_closed_clients off