]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Warn users that multiple ICAP services per icap_class are not yet supported.
authorrousskov <>
Thu, 27 Sep 2007 21:31:15 +0000 (21:31 +0000)
committerrousskov <>
Thu, 27 Sep 2007 21:31:15 +0000 (21:31 +0000)
Despite the warning, we still allow them in the configuration file, but that
may change. This warning may help to make the transition smoother.

src/ICAP/ICAPConfig.cc

index 8ff54b82e2bab7f67cc18cf7413a57323a6f84ef..644e85f78333d5c7af5b7b2f542541bbdb1c1dbb 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ICAPConfig.cc,v 1.19 2007/06/28 15:28:59 rousskov Exp $
+ * $Id: ICAPConfig.cc,v 1.20 2007/09/27 15:31:15 rousskov Exp $
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
  * ----------------------------------------------------------
@@ -90,6 +90,11 @@ ICAPClass::prepare()
     ConfigParser::ParseString(&key);
     ConfigParser::ParseWordList(&service_names);
 
+    if (service_names && service_names->next) {
+        debugs(3,0, "WARNING: Multiple ICAP services per icap_class are " <<
+            "not yet supported. See Squid bug #2087.");
+    }
+
     for (iter = service_names; iter; iter = iter->next) {
         ICAPServiceRep::Pointer match = TheICAPConfig.findService(iter->key);