]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add missing piece omitted from rev.9677.
authorSilamael <Silamael@coronamundi.de>
Fri, 17 May 2013 08:36:45 +0000 (02:36 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 17 May 2013 08:36:45 +0000 (02:36 -0600)
rev.9677 created forward_max_tries direcive 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 04efdde137266b3a2cefa7da4ec9b653a2e37004..adb385141e004b785e59b972172045fc6d7c6e0f 100644 (file)
@@ -552,7 +552,7 @@ FwdState::checkRetry()
     if (!entry->isEmpty())
         return false;
 
-    if (n_tries > 10)
+    if (n_tries > Config.forward_max_tries)
         return false;
 
     if (squid_curtime - start_t > Config.Timeout.forward)