Hi,
I am new to gRPC. I am trying to follow the example code ( for some unclosed reason, we have to use version gRPC v1.38),
the proto is something like
rpc MyRequest (ReqMsg) returns (stream RespMsg)
Basically, when the gRPC server receive client request, it needs *asynchronously* get the info from somewhere else. When the required info comes back (via callback from a different thread, but multiple times), the callback function then *write back* the response using the data structure maintained in CallData,, aka, responder ,etc. During my testing, my gRPC server crashes at proto_buffer_writer.h assertion failed !byte_buffer->Valid() after writing back 2 or 3 responses. I am wondering whether it is due to diff thread (other than the thread which block-waiting on gRPC communication) is doing the writing.
Any advice is appreciated.
Frank