From: Amos Jeffries Date: Wed, 13 Jan 2010 11:59:41 +0000 (+1300) Subject: Bug 2452: external_acl_type does not limit entries, leads to high memory usage X-Git-Tag: SQUID_3_1_0_16~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bf6ac8eee68e7bbf58cabcc9aba14e0b2ea8120;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 bcacf82139..ef8113cc52 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -292,6 +292,7 @@ parse_externalAclHelper(external_acl ** list) a->ttl = DEFAULT_EXTERNAL_ACL_TTL; a->negative_ttl = -1; a->children = DEFAULT_EXTERNAL_ACL_CHILDREN; + a->cache_size = 256*1024; a->local_addr.SetLocalhost(); a->quote = external_acl::QUOTE_METHOD_URL;