aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2017-04-18 13:51:36 -0700
committerGravatar Alexander Polcyn <apolcyn@google.com>2017-05-18 12:09:26 -0700
commitc3b1f18a7e7f443329f95ff25485c503ab76cc69 (patch)
treefb2c76f39c0bbe118cd4ba3f96d2fd7678d995ae /include
parent7ad166fafcc5e75097ac6a8c5403423500a23a7a (diff)
get rid of connectivity state watchers right after timeout
Diffstat (limited to 'include')
-rw-r--r--include/grpc/grpc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index e088435d6c..bdb8617411 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -225,6 +225,12 @@ GRPCAPI void grpc_alarm_destroy(grpc_alarm *alarm);
GRPCAPI grpc_connectivity_state grpc_channel_check_connectivity_state(
grpc_channel *channel, int try_to_connect);
+/** Number of active "external connectivity state watchers" attached to a
+ * channel.
+ * Useful for testing. **/
+GRPCAPI int grpc_channel_num_external_connectivity_watchers(
+ grpc_channel *channel);
+
/** Watch for a change in connectivity state.
Once the channel connectivity state is different from last_observed_state,
tag will be enqueued on cq with success=1.