aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-11-30 01:59:15 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2018-11-30 15:06:11 -0800
commitb203ed3c071361826f3b24d940e6bfa1c3d19f81 (patch)
tree17d4796077fc853de7a14a3df7201a44d057f2ba /include
parent7ef8fc826c52b0c4abeaead633d464197fc0bdf8 (diff)
Cancel still-active c-ares queries after 10 seconds to avoid chance of deadlock
Diffstat (limited to 'include')
-rw-r--r--include/grpc/impl/codegen/grpc_types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/grpc_types.h b/include/grpc/impl/codegen/grpc_types.h
index d1cc6af04f..a9fb27946e 100644
--- a/include/grpc/impl/codegen/grpc_types.h
+++ b/include/grpc/impl/codegen/grpc_types.h
@@ -350,6 +350,11 @@ typedef struct {
/** If set, inhibits health checking (which may be enabled via the
* service config.) */
#define GRPC_ARG_INHIBIT_HEALTH_CHECKING "grpc.inhibit_health_checking"
+/** If set, determines the number of milliseconds that the c-ares based
+ * DNS resolver will wait on queries before cancelling them. The default value
+ * is 10000. Setting this to "0" will disable c-ares query timeouts
+ * entirely. */
+#define GRPC_ARG_DNS_ARES_QUERY_TIMEOUT_MS "grpc.dns_ares_query_timeout"
/** \} */
/** Result of a grpc call. If the caller satisfies the prerequisites of a