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/21d187d2-c026-49d6-b356-ae6a2e72da95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
