be retried. (RFC2616)
Retrying these is a slight violation to the RFC, even if it may be
useful in certain complex hierarchy cases to work around
misconfigured or malfunctioning peers.
This patch adds a new squid.conf directive "retry_on_error" to revert
back to the old mode of aggressively retry requests on errors.
Forward port of 2.5 patch.
#
-# $Id: cf.data.pre,v 1.375 2005/02/19 16:03:33 hno Exp $
+# $Id: cf.data.pre,v 1.376 2005/02/27 16:36:06 serassio Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
takes place if Squid fails to get a satisfying response.
DOC_END
+NAME: retry_on_error
+TYPE: onoff
+LOC: Config.retry.onerror
+DEFAULT: off
+DOC_START
+ If set to on Squid will automatically retry requests when
+ receiving an error response. This is mainly useful if you
+ are in a complex cache hierarchy to work around access
+ control errors.
+DOC_END
+
NAME: snmp_port
TYPE: ushort
LOC: Config.Port.snmp
/*
- * $Id: forward.cc,v 1.124 2004/12/20 16:30:35 robertc Exp $
+ * $Id: forward.cc,v 1.125 2005/02/27 16:36:07 serassio Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: Duane Wessels
{
switch (s) {
+ case HTTP_BAD_GATEWAY:
+
+ case HTTP_GATEWAY_TIMEOUT:
+ return 1;
+
case HTTP_FORBIDDEN:
case HTTP_INTERNAL_SERVER_ERROR:
case HTTP_NOT_IMPLEMENTED:
- case HTTP_BAD_GATEWAY:
-
case HTTP_SERVICE_UNAVAILABLE:
-
- case HTTP_GATEWAY_TIMEOUT:
- return 1;
+ return Config.retry.onerror;
default:
return 0;
/*
- * $Id: structs.h,v 1.508 2005/02/09 13:01:40 serassio Exp $
+ * $Id: structs.h,v 1.509 2005/02/27 16:36:07 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
struct
{
int maxtries;
+ int onerror;
}
retry;