diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-14 11:05:41 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-14 15:35:28 -0500 |
commit | aa5e1008d46f63c5317c890bc9a849e02939cf23 (patch) | |
tree | cdd77f693fc4972ad18d6ebf7f2e1edc07ef531d | |
parent | 1b474ef7011f4bf9ce4aac85dbc9827a9486d5eb (diff) | |
download | sssd-aa5e1008d46f63c5317c890bc9a849e02939cf23.tar.gz sssd-aa5e1008d46f63c5317c890bc9a849e02939cf23.tar.bz2 sssd-aa5e1008d46f63c5317c890bc9a849e02939cf23.zip |
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.
-rw-r--r-- | 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 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 | |