From: wessels <> Date: Fri, 2 Dec 2005 05:39:46 +0000 (+0000) Subject: Add comment explaining why there is 'break' in the loop that looks for X-Git-Tag: SQUID_3_0_PRE4~475 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02b5d61f6ce292a6470a27709216889360d20e4f;p=thirdparty%2Fsquid.git Add comment explaining why there is 'break' in the loop that looks for candidate classes during ACL checks. --- diff --git a/src/ICAP/ICAPConfig.cc b/src/ICAP/ICAPConfig.cc index f98f864160..6925f02975 100644 --- a/src/ICAP/ICAPConfig.cc +++ b/src/ICAP/ICAPConfig.cc @@ -1,6 +1,6 @@ /* - * $Id: ICAPConfig.cc,v 1.2 2005/11/21 23:46:27 wessels Exp $ + * $Id: ICAPConfig.cc,v 1.3 2005/12/01 22:39:46 wessels Exp $ * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- @@ -159,7 +159,14 @@ ICAPAccessCheck::check() candidateClasses += theClass->key; + /* + * Break here because we only need one matching service + * to justify ACL-checking a class. We might use other + * services belonging to the class if the first service + * is unavailable, etc. + */ break; + } }