0
votes

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.

1
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.