summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/providers/data_provider_fo.c2
-rw-r--r--src/resolv/async_resolv.h2
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,