]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2452: external_acl_type does not limit entries, leads to high memory usage
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 2 Jan 2010 01:00:17 +0000 (14:00 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 2 Jan 2010 01:00:17 +0000 (14:00 +1300)
Set a nominal cap of 256*1024 entries per external_acl_type configured.
This can be adjusted as needed with the external_acl_type cache=N option.

src/external_acl.cc

index 737d6cfc7456344ed1ee6d3600aaadfc3a8ca9c1..1b9ae8091bf4f765828107ef943f521d4816fa99 100644 (file)
@@ -293,6 +293,7 @@ parse_externalAclHelper(external_acl ** list)
     /* set defaults */
     a->ttl = DEFAULT_EXTERNAL_ACL_TTL;
     a->negative_ttl = -1;
+    a->cache_size = 256*1024;
     a->children.n_max = DEFAULT_EXTERNAL_ACL_CHILDREN;
     a->children.n_startup = a->children.n_max;
     a->children.n_idle = 1;