From 867174c9d98d703e746b3fde7e48be682b589053 Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Mon, 22 Jul 2013 17:11:25 +0200 Subject: Lower timeout to contact DNS server c-ares timeout to wait for response from DNS server before moving to next DNS server is lowered from 5s to 2s. Partially solves https://fedorahosted.org/sssd/ticket/1966 --- src/resolv/async_resolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resolv') diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c index f1e577e8..0a2c5189 100644 --- a/src/resolv/async_resolv.c +++ b/src/resolv/async_resolv.c @@ -64,7 +64,7 @@ #define DNS__16BIT(p) (((p)[0] << 8) | (p)[1]) #define DNS_HEADER_ANCOUNT(h) DNS__16BIT((h) + 6) -#define RESOLV_TIMEOUTMS 5000 +#define RESOLV_TIMEOUTMS 2000 enum host_database default_host_dbs[] = { DB_FILES, DB_DNS, DB_SENTINEL }; -- cgit