From: Silamael Date: Sun, 19 May 2013 02:38:40 +0000 (-0600) Subject: Bug 2648: Add missing piece omitted from rev.9677 X-Git-Tag: SQUID_3_3_5~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09fff88b46fd297b75c79d608d4bf436d273dd21;p=thirdparty%2Fsquid.git Bug 2648: Add missing piece omitted from rev.9677 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. --- diff --git a/src/forward.cc b/src/forward.cc index d1e05a4e01..295e6dfc57 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -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)