From: Amos Jeffries Date: Tue, 25 Oct 2016 08:23:49 +0000 (+1300) Subject: Fix external_acl_type default children documentations X-Git-Tag: SQUID_3_5_23~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aabf0d797f7957ef67f129a6921b4ed1caf16031;p=thirdparty%2Fsquid.git Fix external_acl_type default children documentations The max children has always been 5, not 20. Also, make mgr:config report dumper actually hide only the real default values. (sync with helper/ChildConfig.cc defaults) --- diff --git a/src/cf.data.pre b/src/cf.data.pre index 4ba0803ef4..8e596ce89d 100644 --- a/src/cf.data.pre +++ b/src/cf.data.pre @@ -678,7 +678,7 @@ DOC_START children-max=n Maximum number of acl helper processes spawned to service - external acl lookups of this type. (default 20) + external acl lookups of this type. (default 5) children-startup=n Minimum number of acl helper processes to spawn during diff --git a/src/external_acl.cc b/src/external_acl.cc index 70b4e4470f..3bbb5cf579 100644 --- a/src/external_acl.cc +++ b/src/external_acl.cc @@ -474,13 +474,13 @@ dump_externalAclHelper(StoreEntry * sentry, const char *name, const external_acl if (node->children.n_max != DEFAULT_EXTERNAL_ACL_CHILDREN) storeAppendPrintf(sentry, " children-max=%d", node->children.n_max); - if (node->children.n_startup != 1) + if (node->children.n_startup != 0) // sync with helper/ChildConfig.cc default storeAppendPrintf(sentry, " children-startup=%d", node->children.n_startup); - if (node->children.n_idle != (node->children.n_max + node->children.n_startup) ) + if (node->children.n_idle != 1) // sync with helper/ChildConfig.cc default storeAppendPrintf(sentry, " children-idle=%d", node->children.n_idle); - if (node->children.concurrency) + if (node->children.concurrency != 0) storeAppendPrintf(sentry, " concurrency=%d", node->children.concurrency); if (node->cache)