From 3eab6dd1024f0750e15c3f0cb6f7a1230d1aca89 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 13 Oct 2019 11:47:56 +0100 Subject: [PATCH] Fix persistent connection timeout for squid 3 and 4 --- cookbooks/squid/templates/default/squid.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/squid/templates/default/squid.conf.erb b/cookbooks/squid/templates/default/squid.conf.erb index 775f5ec6c..fbb07641f 100644 --- a/cookbooks/squid/templates/default/squid.conf.erb +++ b/cookbooks/squid/templates/default/squid.conf.erb @@ -46,7 +46,11 @@ cache_replacement_policy heap LFUDA memory_replacement_policy heap GDSF server_persistent_connections on +<% if node[:squid][:version] < 3 -%> persistent_request_timeout 1 minutes +<% else -%> +client_idle_pconn_timeout 1 minutes +<% end -%> negative_ttl 15 seconds half_closed_clients off -- 2.43.2