Ignore this, it was just a silly bug releasing the stub.   Sorry about it.

El lunes, 18 de septiembre de 2017, 11:41:06 (UTC+2), gust...@gmail.com 
escribió:
>
> 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 grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
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/2d1ad300-a894-4d5d-a2e2-a33f9000b6e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to