From 088d775117b589e5c6433285b62f872fc956c256 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 8 Feb 2018 12:35:45 +0000 Subject: [PATCH] In Keepalive test, send the maximum possible timeout value to the server. The response will then show the server's value. --- src/tools/getdns_server_mon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/getdns_server_mon.c b/src/tools/getdns_server_mon.c index f592ce81..c1f4bc92 100644 --- a/src/tools/getdns_server_mon.c +++ b/src/tools/getdns_server_mon.c @@ -1261,9 +1261,10 @@ static exit_value test_keepalive(struct test_info_s *test_info, { getdns_dict *response; exit_value xit; + const uint64_t MAX_TIMEOUT_VALUE = 0xffff * 10000; getdns_return_t ret; - if ((ret = getdns_context_set_idle_timeout(test_info->context, 1)) != GETDNS_RETURN_GOOD) { + if ((ret = getdns_context_set_idle_timeout(test_info->context, MAX_TIMEOUT_VALUE)) != GETDNS_RETURN_GOOD) { snprintf(test_info->base_output, MAX_BASE_OUTPUT_LEN, "Cannot set keepalive timeout: %s (%d)",