summaryrefslogtreecommitdiff
path: root/src/resolv
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-07-22 17:11:25 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-07-24 13:54:33 +0200
commit867174c9d98d703e746b3fde7e48be682b589053 (patch)
treea30760f1604c036d37f2b3ba5235ca21a66e8420 /src/resolv
parent6176eeeae6e75d3ce78eb98d46dc478541ba6282 (diff)
downloadsssd-867174c9d98d703e746b3fde7e48be682b589053.tar.gz
sssd-867174c9d98d703e746b3fde7e48be682b589053.tar.bz2
sssd-867174c9d98d703e746b3fde7e48be682b589053.zip
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
Diffstat (limited to 'src/resolv')
-rw-r--r--src/resolv/async_resolv.c2
1 files changed, 1 insertions, 1 deletions
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 };