Hi,
I want to use ClientAsyncReaderWriter::Write() in a loop like this:
for(int i = 0; i < n; i++){
    Write(msg);
}
But I got this error: proto_buffer_writer.h:65]   assertion failed: 
!byte_buffer->Valid().

Does that mean that I can't call Write() multiple times without waiting tag 
from CompletionQueue?

If I must wait for a tag, I can only write one message, and wait until get 
the tag, then write the next message. I think it's very inefficient.

So can I use ClientAsyncReaderWriter::Write() in a loop? If so, how to 
resolve the  !byte_buffer->Valid() problem? If not, is there any other 
method to call Write() multiple times without waiting for tag? Or any other 
method that can Write()  efficiently
?

Any advice is appreciated.

-- 
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 grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/c9d63948-5d0d-4e73-bf53-3860f65238d0n%40googlegroups.com.

Reply via email to