]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
require reference_age to be at least 5 minutes
authorwessels <>
Wed, 29 Oct 1997 04:53:35 +0000 (04:53 +0000)
committerwessels <>
Wed, 29 Oct 1997 04:53:35 +0000 (04:53 +0000)
src/cache_cf.cc

index df3aace3a0d0e91b8a188261d7aea09f6f9d1c39..44d1b25fe1fbe583e6a97d2753b76931168a3409 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: cache_cf.cc,v 1.227 1997/10/26 06:26:23 wessels Exp $
+ * $Id: cache_cf.cc,v 1.228 1997/10/28 21:53:35 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -249,8 +249,12 @@ configDoConfigure(void)
     if (Config.retry.maxtries > 10)
        fatal("maximum_single_addr_tries cannot be larger than 10");
     if (Config.retry.maxtries < 1) {
-       Config.retry.maxtries = 1;
        debug(3, 0) ("WARNING: resetting 'maximum_single_addr_tries to 1\n");
+       Config.retry.maxtries = 1;
+    }
+    if (Config.referenceAge < 300) {
+       debug(3, 0) ("WARNING: resetting 'reference_age' to 1 week\n");
+       Config.referenceAge = 86400 * 7;
     }
 }