Hi,
Due to some special requirements I need to disconnect the client from the
server at some point. I destroy the stub and the channel is supposed to
be owned by it but checking with netstat I see the TCP connection to the
server is still ESTABLISHED.
This is the code I have.
auto channel_creds = grpc::SslCredentials(certs_);
auto channel = grpc::CreateChannel(address, channel_creds);
stub_ = proto::api::UsersApi::NewStub(channel);
... and some time later when I want to disconnect the client I do
stub_.release();
Is there anything I'm missing? How can I totally disconnect the TCP
connection to the server?
Thank you very much.
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/58620fa6-5610-4057-aa5b-55011d7393a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.