What does the ok parameter false in gRPC C++ ClientBidiReactor OnWriteDone OnWriteReadDone stand for?

83 views
Skip to first unread message

sui ma

unread,
Nov 12, 2024, 9:54:10 AM11/12/24
to grpc.io
The ok parameter is false indicating a read/write failure, but the call does not end abnormally, and I'm trying to understand what are the underlying reasons for the failure?
The API documentation indicates that “ok Was it successful? If false, no new read/write operation will succeed, and any further Start* should not be called.”  The call should end at this point?

Kannan Jayaprakasam

unread,
Nov 13, 2024, 2:21:02 AM11/13/24
to grpc.io
ok parameter value false indicates no new read/write operation will succeed. Your call did not end abnormally perhaps because your application did not perform any new read/write after the callback was received.

Sui Ma

unread,
Sep 3, 2025, 2:52:14 AMSep 3
to grpc.io
Thanks for the reply!
My understanding is as follows, ok=false is just a hint and will not end the call, if you continue to read and write, the end will be triggered, at this time the best practice is to actively end the session, please ask if my understanding is accurate
Reply all
Reply to author
Forward
0 new messages