[grpc C++ core] cronet channel retry and channel ping support

42 views
Skip to first unread message

Qing Li

unread,
Mar 8, 2021, 11:56:15 AM3/8/21
to grpc.io
Hello,

We have several questions related to gRPC C++ cronet channel.

1. Does cronet channel support retry? We followed the e2e test service retry example  and implemented gRPC retry. The retry works with http2/ssl channel but looks like retry doesn't work with cronet channel. We also want to confirm whether retry is officially supported from gRPC C++ core.

2. Does cronet channel support this grpc_channel_ping API? The context is: we implemented a long lived bidi-streaming RPC call. There is a long period of idle when this RPC is alived. We want to periodically call this channel API to check if channel is health. We know keep alive is not supported by cronet channel. In addition, this grpc_channel_ping API has been removed from the latest release. We are wondering if there is any alternative ping API.

Thanks,
Qing

Yulin Liang

unread,
Mar 9, 2021, 3:55:18 PM3/9/21
to Qing Li, grpc.io
Hi Qing,

1. I just checked, Cronet channels don't support retry for now. Retry is not fully implemented in gRPC C-core, the  part that's implemented now works only as part of the client channel filter, but cronet channels are direct channels, they don't use the client channel filter.

2. grpc_channel_ping() doesn't work with cronet channels. The cronet transport ignores all transport ops sent from the surface.

Thanks,
Yulin

--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/1576fd35-24a3-46a2-aea3-63f7d7f26d32n%40googlegroups.com.

Qing Li

unread,
Mar 10, 2021, 12:40:03 PM3/10/21
to grpc.io
Got it. Thanks Yulin!
Reply all
Reply to author
Forward
0 new messages