From 84f795a52b72982329097ed8ae096b7cb76a3b8a Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 2 Jan 2010 14:00:17 +1300 Subject: [PATCH] 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. --- src/external_acl.cc | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2