]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2648: Add missing piece omitted from rev.9677
authorSilamael <Silamael@coronamundi.de>
Sun, 19 May 2013 02:38:40 +0000 (20:38 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 19 May 2013 02:38:40 +0000 (20:38 -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 d1e05a4e01408846c518fb61dc8edef56ba8a4de..295e6dfc57654fd482b42e3fe51fac91978ee4b1 100644 (file)
@@ -545,7 +545,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)