From aa5e1008d46f63c5317c890bc9a849e02939cf23 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 14 Dec 2010 11:05:41 -0500 Subject: Fix timeouts for DNS resolver options.tries specifies the number of retries. Setting this to zero means to try exactly once. Previously we were always trying twice (internally). We want to simply honor the SSSD configuration and fail over to the next server (or go offline) after one try. --- src/resolv/async_resolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resolv/async_resolv.c') diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c index cc57d8e3..8aa0e0d1 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 = 1; + options.tries = 0; ret = ares_init_options(&new_channel, &options, ARES_OPT_SOCK_STATE_CB | ARES_OPT_TIMEOUTMS | -- cgit