Commit 4ca346b2 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_initialize): Initialize stale_timeout.

(isc_cfg_stale_timeout): New function.
parent 018afcde
......@@ -45,6 +45,7 @@
#include "oop.h"
#include "s-string.h"
#include "timeval-util.h"
#include "isc.h"
#include "intern.h"
......@@ -70,6 +71,7 @@ isc_initialize(oop_source *event_source)
mcb->scfg->max.openretries = ISC_DEFAULT_MAX_OPEN_RETRIES;
mcb->scfg->max.backlog = ISC_DEFAULT_MAX_BACKLOG;
mcb->scfg->fd_relocate = 0;
mcb->scfg->stale_timeout = timeval_ctor(3600, 0);
mcb->event_source = event_source;
......@@ -85,6 +87,12 @@ isc_cfg_fd_relocate(struct isc_mcb *mcb,
}
void
isc_cfg_stale_timeout(struct isc_mcb *mcb,
struct timeval tv)
{
mcb->scfg->stale_timeout = tv;
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment