grpc/grpc-experiments

grpc noblocking server

LuckyCloud opened this issue · 4 comments

can grpc implement an c++ noblocking server?

You can use AsyncNext to specify a deadline instead of just calling Next.

On Thu, Jun 25, 2015 at 9:03 PM, luckycloud.liu notifications@github.com
wrote:

I see it but it is also block on poll
#0 0x00007ffff633c0d3 in poll () from /lib64/libc.so.6
#1 #1 0x00007ffff77c1098 in ??
() from /usr/local/lib/libgrpc.so.0
#2 #2 0x00007ffff77c0c6e in
grpc_pollset_work () from /usr/local/lib/libgrpc.so.0
#3 #3 0x00007ffff77ca765 in
grpc_completion_queue_next () from /usr/local/lib/libgrpc.so.0
#4 #4 0x00007ffff7bc51bd in
grpc::CompletionQueue::AsyncNextInternal(void
, bool, gpr_timespec) () from /usr/local/lib/libgrpc++unsecure.so.0 #5
#5 0x0000000000409d47 in
grpc::CompletionQueue::Next(void
, bool_) ()
#6 #6 0x000000000040a4f4 in
ServerImpl::HandleRpcs() ()
#7 #7 0x000000000040a0ae in
ServerImpl::Run() ()
#8 #8 0x0000000000409c6f in
main ()


Reply to this email directly or view it on GitHub
#252 (comment).

can you give me a example? to nicolasnoble

@nicolasnoble Is this resolved, is a doc update needed somewhere