CallData* cd = NULL;
bool ok = false;
while( cq->Next(reinterpret_cast<void**>(&cd), &ok) ) {
if( ok ) {
cd->Proceed();
} else {
// what to do here?
}
}
In my grpc server, I found the 2nd parameter of ServerCompletionQueue::Next
sometimes returns false.
If I do nothing in this case, CallData exhaust after a while and the
program hang at the 3rd line (the start of the while loop).
but from the examples, I didn't find a correct way to handle this.
Is there an example for this, thanks.
--
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/87b2b09a-c825-4ea6-ae3a-ffcecec5b1eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.