static void* rpc_thread(void* arg) {
CallData* cd = NULL;
bool ok = true;
while ( cq->Next(reinterpret_cast(&cd), &ok) ) {
if( ok ) {
cd->Proceed();
} else {
// TODO:
}
}
return NULL;
}
I'm using several threads in the server side to process client request, the
thread code is like above.
When
update: *Finish* has the problem too.
在 2017年1月14日星期六 UTC+8下午3:25:50,zhang...@gmail.com写道:
>
> I'm writing an async grpc server, but after call FinishWithError some
> times, it causes an assertion failure and abort.
> stack trace as below.
>
>
>> E0114 15:19:50.962619342 25405 server.cc:485]
We don't currently have a cork for initial metadata, but we could get one
by just adding a WriteOptions to the stub stream constructors: that would
be the minimal change.
Most of the rest of this could be seen as syntactic sugar to help guide
developers into doing the cheaper thing vs the more exp