]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Mark Nottingham <mnot@pobox.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 15 May 2009 06:41:04 +0000 (18:41 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 15 May 2009 06:41:04 +0000 (18:41 +1200)
Bug 2632: Make number of reforwarding tries configurable

doc/release-notes/release-3.1.sgml
src/cf.data.pre
src/forward.cc
src/structs.h

index af8a770b3241be32c9f2235ce61e766d11475673..40d8cb24d19da6ea28d664461caeccd63f09236f 100644 (file)
@@ -648,6 +648,10 @@ This section gives a thorough account of those changes in three categories:
        Requires ftp_passive to be ON (default)
        </verb>
 
+       <tag>forward_max_tries</tag>
+       <p>Controls how many different forward paths Squid will try
+       before giving up. Default: 10
+
        <tag>include</tag>
        <p>New option to import entire secondary configuration files into squid.conf.
        <verb>
index e7e53807bfa231269810f283b40ece260fbfe554..f42295012bacf2a008e912bb5d24b41b9e66421d 100644 (file)
@@ -1941,6 +1941,15 @@ DOC_START
        instead of to your parents.
 DOC_END
 
+NAME: forward_max_tries
+DEFAULT: 10
+TYPE: int
+LOC: Config.forward_max_tries
+DOC_START
+       Controls how many different forward paths Squid will try
+       before giving up. See also forward_timeout.
+DOC_END
+
 NAME: hierarchy_stoplist
 TYPE: wordlist
 DEFAULT: none
index 076b72aa84f0cfc118c76e1dcbea4cea4ed8a321..1cab5499593b9cb5e5dd25595365ed895dcd8468 100644 (file)
@@ -1095,7 +1095,7 @@ FwdState::reforward()
         return 0;
     }
 
-    if (n_tries > 9)
+    if (n_tries > Config.forward_max_tries)
         return 0;
 
     if (origin_tries > 1)
index 8065a509c11278561c4c12e48af46745c006ef39..efdc7dd8e36fbbb8059c60a3054349d4b1dda95b 100644 (file)
@@ -447,6 +447,8 @@ struct SquidConfig {
         int WIN32_IpAddrChangeMonitor;
     } onoff;
 
+    int forward_max_tries;
+
     class ACL *aclList;
 
     struct {