I fixed the latency issue by setting the GRPC_CLIENT_CHANNEL_BACKUP_POLL_INTERVAL_MS environment variable to a small value (default is 5000 ms).
On Thursday, May 6, 2021 at 5:05:47 PM UTC-4 Marc Tibout wrote: > I am seeing high latency for the OnReadDone() callbacks in my C++ gRPC > client for a bi-directional stream RPC. > Requests from the client and responses from the server are completely > asynchronous. > Using grpc-dump (https://github.com/bradleyjkemp/grpc-tools) generated > output, I see that incoming server responses are only triggering the > OnReadDone() callback after a variable delay of 2 to 5 seconds. > There is no such issue with the requests sent to the server. > The OnReadDone(ok) implementation is systematically calling StartRead() > once the incoming message has been processed (unless ok is false in which > case the rpc is terminated). > Any idea what can be done to investigate further this issue? > Thanks! > OS: Linux > gRPC version: 1.34.1 (and 1.37.1) > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/ed102ca6-ec1a-4b94-aaa7-355533e3a104n%40googlegroups.com.
