https://fedorahosted.org/sssd/ticket/867

channel->tries is only used when a query fails. We were forcibly setting
it to 0, which meant we never retried another server.
From 87c6738405fc85d8fdb939d15e2f9ba3fb3b2313 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhro...@redhat.com>
Date: Thu, 12 May 2011 13:01:42 +0200
Subject: [PATCH] Set c-ares to retry nameservers

https://fedorahosted.org/sssd/ticket/867
---
 src/resolv/async_resolv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c
index b7e03de..ff53aa4 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 |
-- 
1.7.4.4

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sssd-devel mailing list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel

Reply via email to