You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a streaming call that's terminated by the server, where the client doesn't call call.Finish() and thus the server doesn't wait for anything from the client.
I don't think the server should be required to wait for the client to mark a call as done per the above quote about a server deciding to complete a call with no input from the client.
, I don't see any tests in which the client does not call call.Finish().
The use case I'm thinking of is an infinite duration streaming RPC where the client connects to the server indefinitely, until the server decides to stop the call (e.g. in a unit test, where the server would like to finish the call to conclude the test).
The text was updated successfully, but these errors were encountered:
I'm trying to write a streaming call that's terminated by the server, where the client doesn't call
call.Finish()
and thus the server doesn't wait for anything from the client.This should be a valid mode of gRPC operation: https://grpc.io/docs/what-is-grpc/core-concepts/#rpc-termination
I currently don't know how to do this, because bidirectional streaming RPC server handlers end with a call to
StreamingEpilogue()
:eventuals/protoc-gen-eventuals/templates/eventuals.cc.j2
Lines 120 to 121 in cba2c46
call.WaitForDone()
:eventuals/eventuals/grpc/server.h
Lines 798 to 830 in cba2c46
I don't think the server should be required to wait for the client to mark a call as done per the above quote about a server deciding to complete a call with no input from the client.
Glancing through the examples in
eventuals/test/grpc/streaming.cc
Line 82 in cba2c46
call.Finish()
.The use case I'm thinking of is an infinite duration streaming RPC where the client connects to the server indefinitely, until the server decides to stop the call (e.g. in a unit test, where the server would like to finish the call to conclude the test).
The text was updated successfully, but these errors were encountered: