]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
use a reasonable default cache cleaning interval of 2 hours
authorAndreas Gustafsson <source@isc.org>
Thu, 2 Dec 1999 23:53:08 +0000 (23:53 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 2 Dec 1999 23:53:08 +0000 (23:53 +0000)
until the cleaning-interval config file option gets wired up

lib/dns/cache.c

index 9158dc4328e426eecaf54922c4a9f9985710d9fa..210c98ac572f063f95b889c14b03ce2074a320be 100644 (file)
@@ -15,7 +15,7 @@
  * SOFTWARE.
  */
 
- /* $Id: cache.c,v 1.2 1999/12/02 22:35:29 gson Exp $ */
+ /* $Id: cache.c,v 1.3 1999/12/02 23:53:08 gson Exp $ */
 
 #include <config.h>
 #include <limits.h>
@@ -323,7 +323,7 @@ cache_cleaner_init(dns_cache_t *cache, isc_taskmgr_t *taskmgr,
                RUNTIME_CHECK(iresult == ISC_R_SUCCESS);
 
                /* XXX get this from the configuration file */
-               cleaner->cleaning_interval = 30; /* seconds */
+               cleaner->cleaning_interval = 2 * 3600; /* seconds */
                isc_interval_set(&interval, cleaner->cleaning_interval, 0);
                iresult = isc_timer_create(timermgr, isc_timertype_ticker,
                                           NULL, &interval,