Hi,

>> My question is that before the cq (write) event is notified, does it
allow to write another message? I

As you correctly noticed, a second write is not allowed until you do a
cq->next() and make sure that the first write is done (the tag for the
first write operation is returned from the completion queue).


-Sree

On Wed, Jan 25, 2017 at 6:25 PM, <[email protected]> wrote:

> I know that the read/write using ServerAsyncReaderWriter is async. After
> calling the write API, the actual writing op is done when the cq (write)
> event is notified. My question is that before the cq (write) event is
> notified, does it allow to write another message? I see it crashes in my
> program, got error below. Does this mean we have to serialize the write
> operations?
>
> E0125 18:15:03.665376213   12789 server.cc:485]              assertion
> failed: GRPC_CALL_OK == result
>
> --
> 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/4e176a73-b52b-4843-b666-46c3fdfae199%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/4e176a73-b52b-4843-b666-46c3fdfae199%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALRi9QdcJszC_MJUevgtM44YMtBG-KQzUo60Yhftst4tMsLJCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to