Thanks Koen,  I also realized the same behavior after i did more testing. 
Thanks for help. Its working now.

-Chaitanya

On Tuesday, 9 August 2016 02:54:02 UTC+5:30, Koen De Keyser wrote:
>
> Your server has one or more RPC's, and doing a shutdown implies a Cancel 
> on each RPC. This cancel results in all of the outstanding tags to become 
> available (i.e. Next returns with the "tag" set) on the completion queue, 
> but with the "ok" variable set to false. This indicates that this tag can 
> no longer be returned by subsequent Next calls, and the operation 
> associated with this tag was cancelled. This is the ideal moment to release 
> resources associated with this tag.
>
> Only after all of the tags that were still in use, have been returned by 
> the Next calls, Next will start to return false. In that case, neither 
> "tag" nor "ok" are set by grpc.
>
> So there is a clear distinction between the purpose of "ok" and the bool 
> that gets returned by Next.
>
> Koen
>
>

-- 
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/0608bcde-32ff-40b9-b3e7-80cd67b67650%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to