Here is my protobuf file:
service gRPCComServeFunc {
rpc sendFile(FileRequest) returns (google.protobuf.Empty) {}
}
My questions:
- Q1: I wonder does the receiver need to return an
google.protobuf.Empty
object to the sender or not (which means the receiver doesn't need to return anything) - Q2: In other words, I wonder when the remote rpc is ended in the sender? The moment when the sender get feedback (e.g. an
Empty
object) or when the the functionsendFile
ends in the receiver, especially when the return type isgoogle.protobuf.Empty
? - Q3: If the function
sendFile
in the receiver will run for a long time and the receiver doesn't returnEmpty
object, will the sender reporttimeout
orsocket closed
error?