]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/squid/templates/default/squid.conf.erb
Limit persistent connections to five minutes for squid 4
[chef.git] / cookbooks / squid / templates / default / squid.conf.erb
index 775f5ec6cea2702248aef5624ac48dbcd2e06bd3..817fd5072144c7198abda28a1e2a699cfcc1dbb9 100644 (file)
@@ -46,7 +46,14 @@ 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 -%>
+<% if node[:squid][:version] > 3 -%>
+pconn_lifetime 5 minutes
+<% end -%>
 
 negative_ttl 15 seconds
 half_closed_clients off