[grpc-io] Re: grpc ClientAsyncReaderWriter::Write() crashes: !byte_buffer->Valid()

2023-08-16 Thread
ps://github.com/grpc/grpc/blob/master/test/cpp/qps/client_async.cc > > On Tuesday, August 15, 2023 at 7:26:02 PM UTC-7 黄舒心 wrote: > >> Hi, >> I want to use ClientAsyncReaderWriter::Write() in a loop like this: >> for(int i = 0; i < n; i++){ >> Write(msg); &

[grpc-io] grpc ClientAsyncReaderWriter::Write() crashes: !byte_buffer->Valid()

2023-08-15 Thread
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