You may want to try ServerContext::AsyncNotifyWhenDone. On Wed, Aug 17, 2016 at 2:51 AM, Chaitanya Gangwar < [email protected]> wrote:
> Hi, > > I have Async streaming server implemented in C++. > I want to know is there any way to detect on server side when a client > disconnects so that i can clean up the resources. > > Currently i am relying on "m_serverContext->IsCancelled ()" but i need to > periodically check this if the client is present or gone. I am thinking of > some event or notification received at server side when client disconnects > so that i don't need to periodically checks the > "m_serverContext->IsCancelled ()". > > Thanks > Chaitanya > > -- > 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]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/grpc-io/578be824-2c0e-49dd-bef9-b740f84c231f%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/578be824-2c0e-49dd-bef9-b740f84c231f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CAB1HKY4YO7J1WH3kjYsq6U%2B1%2BhstpiJOOdNaP8r1rafNKDwJaA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
