summaryrefslogtreecommitdiffstats
path: root/src/providers/fail_over.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/fail_over.h')
-rw-r--r--src/providers/fail_over.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h
index 3ca6096c4..fee64e82c 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;
};