I have a C++ client that reads data from a stream using a ClientReader. The
client runs a separate thread that effectively does:
while (reader_stream->Read(buf)) {
// Do something with buf
}
This works just fine, no problem.
At some point, my process receives a message from an external program (not
via gRPC) that instructs it to shut down. The problem is that I can't exit
from the read loop because the client thread is stuck in its Read() call,
and the server may not send another message for hours.
I need to cancel the Read() call from another thread in my client, but I
can't find anything in the API to do this. What am I missing?
Thanks,
Michi.
--
*CONFIDENTIALITY NOTICE:* The information contained in this message may be
privileged and/or confidential. It is the property of CrowdStrike. If you
are not the intended recipient, or responsible for delivering this message
to the intended recipient, any review, forwarding, dissemination,
distribution or copying of this communication or any attachment(s) is
strictly prohibited. If you have received this message in error, please
notify the sender immediately, and delete it and all attachments from your
computer and network.
--
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/28d13082-e73a-4a9b-9762-92a5614101cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.