From: Amos Jeffries Date: Sat, 2 Jan 2010 01:00:17 +0000 (+1300) Subject: Bug 2452: external_acl_type does not limit entries, leads to high memory usage X-Git-Tag: SQUID_3_2_0_1~484 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=84f795a52b72982329097ed8ae096b7cb76a3b8a;p=thirdparty%2Fsquid.git Bug 2452: external_acl_type does not limit entries, leads to high memory usage 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. --- diff --git a/src/external_acl.cc b/src/external_acl.cc index 737d6cfc74..1b9ae8091b 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -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;