Fix persistent connection timeout for squid 3 and 4
[chef.git] / cookbooks / squid / templates / default / squid.conf.erb
index 775f5ec6cea2702248aef5624ac48dbcd2e06bd3..fbb07641f1c05142a082f56bf53e131d28c19991 100644 (file)
@@ -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