mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
use a reasonable default cache cleaning interval of 2 hours
until the cleaning-interval config file option gets wired up
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user