summaryrefslogtreecommitdiffstats
path: root/src/providers/fail_over.h
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-02-10 15:01:35 +0000
committerJakub Hrozek <jhrozek@redhat.com>2014-04-14 12:56:44 +0200
commit8ed6630fb25c7d5af6e2d9915786b94600198b01 (patch)
tree6a7725489b36bfb599838c4a3bbbbab081b3efb5 /src/providers/fail_over.h
parent4f6931e854c698dcb1c09f99eb330ce2fb97e7c6 (diff)
downloadsssd-8ed6630fb25c7d5af6e2d9915786b94600198b01.tar.gz
sssd-8ed6630fb25c7d5af6e2d9915786b94600198b01.tar.xz
sssd-8ed6630fb25c7d5af6e2d9915786b94600198b01.zip
failover: Shorter retry time for failed SRV
Until now there was only one timeout used to re-resolve SRV queries. This patch adds new (shorter) timeout that will be used for queries that previously failed. Resolves: https://fedorahosted.org/sssd/ticket/1885 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/fail_over.h')
-rw-r--r--src/providers/fail_over.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h
index e4cc1b1cb..b1ec6a23c 100644
--- a/src/providers/fail_over.h
+++ b/src/providers/fail_over.h
@@ -71,11 +71,15 @@ struct fo_server;
* The 'srv_retry_timeout' member specifies how long a SRV lookup
* is considered valid until we ask the server again.
*
+ * The 'srv_retry_neg_timeout' member specifies how long a SRV lookup
+ * waits before previously failed lookup is tried again.
+ *
* The family_order member specifies the order of address families to
* try when looking up the service.
*/
struct fo_options {
time_t srv_retry_timeout;
+ time_t srv_retry_neg_timeout;
time_t retry_timeout;
int service_resolv_timeout;
enum restrict_family family_order;