]> git.openstreetmap.org Git - chef.git/commitdiff
Limit persistent connections to five minutes for squid 4
authorTom Hughes <tom@compton.nu>
Sun, 13 Oct 2019 10:48:33 +0000 (11:48 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 13 Oct 2019 10:48:33 +0000 (11:48 +0100)
cookbooks/squid/templates/default/squid.conf.erb

index fbb07641f1c05142a082f56bf53e131d28c19991..817fd5072144c7198abda28a1e2a699cfcc1dbb9 100644 (file)
@@ -51,6 +51,9 @@ persistent_request_timeout 1 minutes
 <% else -%>
 client_idle_pconn_timeout 1 minutes
 <% end -%>
 <% 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
 
 negative_ttl 15 seconds
 half_closed_clients off