]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add missing piece omitted from rev.9677
authorSilamael <Silamael@coronamundi.de>
Sun, 19 May 2013 03:32:38 +0000 (21:32 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 19 May 2013 03:32:38 +0000 (21:32 -0600)
rev.9677 created forward_max_tries directive but omitted one of the
checks. This adds that check and allows forward_max_tries to be set
to values greater than 10.

src/forward.cc

index 6c1e9975eba12a9091e53390c7fd7664529a84ab..9b25cb2e6c4fcb6a3a25e57b54af667693816dd0 100644 (file)
@@ -515,7 +515,7 @@ FwdState::checkRetry()
     if (!entry->isEmpty())
         return false;
 
-    if (n_tries > 10)
+    if (n_tries > Config.forward_max_tries)
         return false;
 
     if (origin_tries > 2)