summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-05-12 13:01:42 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-05-24 14:44:13 -0400
commit2cb2b4000c8eef738fe22e920870604e9dd8367b (patch)
treee74c2af21d1b6b7d432264466662e94d9c4b5f6d
parent48a6c5e720bfd0be328c11bdef4ed1febe42455c (diff)
downloadsssd-2cb2b4000c8eef738fe22e920870604e9dd8367b.tar.gz
sssd-2cb2b4000c8eef738fe22e920870604e9dd8367b.tar.xz
sssd-2cb2b4000c8eef738fe22e920870604e9dd8367b.zip
Set c-ares to retry nameservers
https://fedorahosted.org/sssd/ticket/867
-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 b7e03ded3..ff53aa441 100644
--- a/src/resolv/async_resolv.c
+++ b/src/resolv/async_resolv.c
@@ -331,7 +331,7 @@ recreate_ares_channel(struct resolv_ctx *ctx)
options.sock_state_cb_data = ctx;
options.timeout = ctx->timeout * 1000;
options.lookups = discard_const("fb");
- options.tries = 0;
+ options.tries = 1;
ret = ares_init_options(&new_channel, &options,
ARES_OPT_SOCK_STATE_CB |
ARES_OPT_TIMEOUTMS |