diff options
author | Alexander Polcyn <apolcyn@google.com> | 2017-04-18 13:51:36 -0700 |
---|---|---|
committer | Alexander Polcyn <apolcyn@google.com> | 2017-05-18 12:09:26 -0700 |
commit | c3b1f18a7e7f443329f95ff25485c503ab76cc69 (patch) | |
tree | fb2c76f39c0bbe118cd4ba3f96d2fd7678d995ae /include/grpc | |
parent | 7ad166fafcc5e75097ac6a8c5403423500a23a7a (diff) |
get rid of connectivity state watchers right after timeout
Diffstat (limited to 'include/grpc')
-rw-r--r-- | include/grpc/grpc.h | 6 |
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. |