#
-# $Id: cf.data.pre,v 1.419 2006/07/02 16:53:46 serassio Exp $
+# $Id: cf.data.pre,v 1.420 2006/07/31 13:17:57 serassio Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
do not specify this parameter.
DOC_END
+NAME: wccp2_rebuild_wait
+TYPE: onoff
+LOC: Config.Wccp2.rebuildwait
+DEFAULT: on
+IFDEF: USE_WCCPv2
+DOC_START
+ If this is enabled Squid will wait for the cache dir rebuild to finish
+ before sending the first wccp2 HereIAm packet
+DOC_END
+
NAME: wccp2_forwarding_method
TYPE: int
LOC: Config.Wccp2.forwarding_method
/*
- * $Id: structs.h,v 1.544 2006/07/02 16:53:47 serassio Exp $
+ * $Id: structs.h,v 1.545 2006/07/31 13:17:57 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
struct IN_ADDR address;
int forwarding_method;
int return_method;
+ int rebuildwait;
void *info;
}
/*
- * $Id: wccp2.cc,v 1.2 2006/07/29 19:25:57 serassio Exp $
+ * $Id: wccp2.cc,v 1.3 2006/07/31 13:17:57 serassio Exp $
*
* DEBUG: section 80 WCCP Support
* AUTHOR: Steven WIlton
return;
}
+ /* Wait 10 seconds if store dirs are rebuilding */
+ if (store_dirs_rebuilding && Config.Wccp2.rebuildwait) {
+ eventAdd("wccp2HereIam", wccp2HereIam, NULL, 1.0, 1);
+ return;
+ }
+
router_len = sizeof(router);
memset(&router, '\0', router_len);
router.sin_family = AF_INET;
service_list_ptr = service_list_ptr->next;
}
- if (!eventFind(wccp2HereIam, NULL))
- eventAdd("wccp2HereIam", wccp2HereIam, NULL, 10.0, 1);
+ eventAdd("wccp2HereIam", wccp2HereIam, NULL, 10.0, 1);
}
static void