hello Qi, Can you have a look at this thread pls.
regards, Vimal On Tuesday, 4 October 2016 02:01:56 UTC+5:30, Qi Zhao wrote: > > 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] <javascript:>> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/8aca3ecc-9b92-42eb-a142-d78df964efaa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
