More info is needed. How do you do per-connection book keeping on the server side in the first place? The only way I can think of to do per-connection book keeping on server side is to make a custom net.Listener. If you do this way, it is not hard to detect whether the connections accepted by this listener is closed by the client or not.
On Sun, Oct 2, 2016 at 11:13 PM, <[email protected]> wrote: > I am using grpc go > > i have an rpc which looks roughly like this > > 196 service MyService { > 197 // Operation 1 > 198 rpc Operation1(OperationRequest) returns (OperationResponse) { > 199 option (google.api.http) = { > 200 post: "/apiver/myser/oper1" > 201 body: "*" > 202 }; > 203 } > > > Client connects by using grpc.Dial() method > > When a client connects, the server does some book keeping. when the client > disconnects, the bookkeeping needs to be removed. > > is there any callback that can be registered which can be used to know the > session is getting closed. > > Thanks, > Regards, > Vimal > > -- > 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/3bfd5b3d-5468-4728-9e60-042e49552069%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/3bfd5b3d-5468-4728-9e60-042e49552069%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Thanks, -Qi -- 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/CAFnDmdrbgmpAANQfw-q7nKG0xuzFJ_DbXCs7qRoLeVf8%2BcEvfw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
