diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-12-20 16:30:02 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-12-20 13:37:28 -0500 |
commit | b8ecc581cdd8c7d097bf9db67a4cb220fbbcff6d (patch) | |
tree | 113391828a6066980c3156ec936958efd272f3bd /src/providers/fail_over.h | |
parent | f76cb01f05f7c1764028084b166f65c3ff4e670f (diff) | |
download | sssd-b8ecc581cdd8c7d097bf9db67a4cb220fbbcff6d.tar.gz sssd-b8ecc581cdd8c7d097bf9db67a4cb220fbbcff6d.tar.xz sssd-b8ecc581cdd8c7d097bf9db67a4cb220fbbcff6d.zip |
Failover: Introduce a per-service timeout
https://fedorahosted.org/sssd/ticket/976
Diffstat (limited to 'src/providers/fail_over.h')
-rw-r--r-- | src/providers/fail_over.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h index 3ca6096c..fee64e82 100644 --- a/src/providers/fail_over.h +++ b/src/providers/fail_over.h @@ -33,6 +33,8 @@ #define FO_PROTO_TCP "tcp" #define FO_PROTO_UDP "udp" +#define FO_DEFAULT_SVC_TIMEOUT 10 + /* Some forward declarations that don't have to do anything with fail over. */ struct hostent; struct tevent_context; @@ -63,6 +65,10 @@ struct fo_server; * duration in seconds of how long a server or port will be considered * non-working after being marked as such. * + * The 'service_resolv_timeout' member specifies how long we wait for + * service resolution. When this timeout is reached, the resolve request + * is cancelled with an error + * * The 'srv_retry_timeout' member specifies how long a SRV lookup * is considered valid until we ask the server again. * @@ -72,6 +78,7 @@ struct fo_server; struct fo_options { time_t srv_retry_timeout; time_t retry_timeout; + int service_resolv_timeout; enum restrict_family family_order; }; |