diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-06-13 15:58:59 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-07-11 16:52:52 -0400 |
commit | 570c8a9351b28582301d2ce6b5de3b23f72ee583 (patch) | |
tree | 9f4f865391aeb0c8abf3b02ffa481d6f1174369f /src | |
parent | 97c93859e310bc8e4ad5f011e42a5fccd4a7f369 (diff) | |
download | sssd-570c8a9351b28582301d2ce6b5de3b23f72ee583.tar.gz sssd-570c8a9351b28582301d2ce6b5de3b23f72ee583.tar.bz2 sssd-570c8a9351b28582301d2ce6b5de3b23f72ee583.zip |
Do not hardcode default resolver timeout
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/data_provider_fo.c | 2 | ||||
-rw-r--r-- | src/resolv/async_resolv.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/data_provider_fo.c b/src/providers/data_provider_fo.c index 58468c82..8427d297 100644 --- a/src/providers/data_provider_fo.c +++ b/src/providers/data_provider_fo.c @@ -117,7 +117,7 @@ int be_init_failover(struct be_ctx *ctx) ret = confdb_get_int(ctx->cdb, ctx, ctx->conf_path, CONFDB_DOMAIN_RESOLV_TIMEOUT, - 5, &fo_timeout); + RESOLV_DEFAULT_TIMEOUT, &fo_timeout); if (ret != EOK) { return ret; } diff --git a/src/resolv/async_resolv.h b/src/resolv/async_resolv.h index b5547e5d..70694795 100644 --- a/src/resolv/async_resolv.h +++ b/src/resolv/async_resolv.h @@ -41,6 +41,8 @@ #define RESOLV_DEFAULT_TTL 7200 #endif /* RESOLV_DEFAULT_TTL */ +#define RESOLV_DEFAULT_TIMEOUT 5 + /* * An opaque structure which holds context for a module using the async * resolver. Is should be used as a "local-global" variable - in sssd, |