From the grpc , the client could invoke CloseSend to close the stream to the server, But it seems that the server could not cut off the connection to the client.
why do you know that ? what's the error ?
– Yandry Pozo
1 Answers
0
votes
First of all, you should not think about gRPC in terms of connections.
ServerStream will stop to send data as soon as handler returns an error. There is no need on the server-side to have a function like CloseSend.
If you want to execute some logic after return, just spawn a goroutine.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more