sees dynamic query timeouts in the range of 6-7 seconds.
#
-# $Id: cf.data.pre,v 1.156 1999/06/16 21:23:31 wessels Exp $
+# $Id: cf.data.pre,v 1.157 1999/06/16 22:10:36 wessels Exp $
#
#
# SQUID Internet Object Cache http://squid.nlanr.net/Squid/
icp_query_timeout 0
DOC_END
+NAME: maximum_icp_query_timeout
+COMMENT: (msec)
+DEFAULT: 2000
+TYPE: int
+LOC: Config.Timeout.icp_query_max
+DOC_START
+ When you use the dynamic ICP query timeout (by setting
+ 'icp_query_timeout' to zero) you might want to place an
+ upper limit on the timeout value.
+
+ If 'icp_query_timeout' is set to zero, this value is ignored.
+icp_query_timeout 2000
+DOC_END
+
NAME: mcast_icp_query_timeout
COMMENT: (msec)
DEFAULT: 2000
/*
- * $Id: neighbors.cc,v 1.274 1999/05/11 18:45:46 wessels Exp $
+ * $Id: neighbors.cc,v 1.275 1999/06/16 22:10:40 wessels Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
*/
if (Config.Timeout.icp_query)
*timeout = Config.Timeout.icp_query;
- else if (*exprep > 0)
- (*timeout) = 2 * (*timeout) / (*exprep);
- else
- *timeout = 2000; /* 2 seconds */
+ else {
+ if (*exprep > 0)
+ (*timeout) = 2 * (*timeout) / (*exprep);
+ else
+ *timeout = 2000; /* 2 seconds */
+ if (Config.Timeout.icp_query_max)
+ if (*timeout > Config.Timeout.icp_query_max)
+ *timeout = Config.Timeout.icp_query_max;
+ }
return peers_pinged;
}
/*
- * $Id: structs.h,v 1.298 1999/06/16 21:23:34 wessels Exp $
+ * $Id: structs.h,v 1.299 1999/06/16 22:10:43 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
time_t siteSelect;
time_t deadPeer;
int icp_query; /* msec */
+ int icp_query_max; /* msec */
int mcast_icp_query; /* msec */
#if USE_IDENT
time_t ident;