mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 12:13:20 -04:00
set the default rndc read timeout to 60 seconds
While the connect timeout was set to 60 seconds in rndc, the
idle read timeout was left at the default value of 30 seconds.
This commit sets it back to 60, to match the behavior in 9.16
and earlier.
(cherry picked from commit 9cacf9e336)
This commit is contained in:
parent
5a4ea1236b
commit
248f765e73
1 changed files with 6 additions and 2 deletions
|
|
@ -54,7 +54,8 @@
|
|||
|
||||
#include "util.h"
|
||||
|
||||
#define SERVERADDRS 10
|
||||
#define SERVERADDRS 10
|
||||
#define RNDC_TIMEOUT 60 * 1000
|
||||
|
||||
const char *progname = NULL;
|
||||
bool verbose;
|
||||
|
|
@ -599,7 +600,7 @@ rndc_startconnect(isc_sockaddr_t *addr) {
|
|||
|
||||
atomic_fetch_add_relaxed(&connects, 1);
|
||||
isc_nm_tcpconnect(netmgr, local, addr, rndc_connected, &rndc_ccmsg,
|
||||
60000, 0);
|
||||
RNDC_TIMEOUT, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -1035,6 +1036,9 @@ main(int argc, char **argv) {
|
|||
isc_mem_create(&rndc_mctx);
|
||||
isc_managers_create(rndc_mctx, 1, 0, &netmgr, &taskmgr, NULL);
|
||||
DO("create task", isc_task_create(taskmgr, 0, &rndc_task));
|
||||
|
||||
isc_nm_settimeouts(netmgr, RNDC_TIMEOUT, RNDC_TIMEOUT, RNDC_TIMEOUT, 0);
|
||||
|
||||
isc_log_create(rndc_mctx, &log, &logconfig);
|
||||
isc_log_setcontext(log);
|
||||
isc_log_settag(logconfig, progname);
|
||||
|
|
|
|||
Loading…
Reference in a new issue