There is not very much information about CARP. Does anyone know
where to find some?
Currently, Squid dies with an assert() failure if CARP support
is compiled in but one tries to configure a sibling. Is this
the expected behaviour? Would the attached patch be more
appropriate (especially as there seems to be not much information
about CARP)?
--- squid-2.2.STABLE5/src/carp.c.dist Mon Aug 17 17:55:20 1998
+++ squid-2.2.STABLE5/src/carp.c Tue Feb 15 17:53:36 2000
@@ -97,7 +97,12 @@
url_hash += (url_hash << 19) + *c;
/* select peer */
for (tp = Config.peers; tp; tp = tp->next) {
+#if 0
assert(tp->type == PEER_PARENT);
+#else
+ if (tp->type != PEER_PARENT)
+ return NULL; /* XXX */
+#endif
combined_hash = (url_hash ^ tp->carp.hash);
combined_hash += combined_hash * 0x62531965;
combined_hash = combined_hash << 21;
-- Ambrose Li / +1 416 321 0088 x272 / Ming Pao Newspapers (Canada) Ltd. / EDP Department @ Toronto PGP fingerprint = 945C 2CF7 001D 5F03 B026 375F C5CF A55C 9F10 8B0EReceived on Fri Feb 18 2000 - 09:45:11 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:20 MST