How do I Finish a gRPC message-stream from the client?
-
When I open an outgoing message-stream from a client, I get a
std::shared_ptr<QGrpcClientStream>
value.I can send messages with
stream->sendMessage(msg)
, and I can callstream->read<>()
to get the the latest message in the stream onFinished handler. However, the handler is never called because I don't know how to finish the stream.In the standard async/callback gRPC interface, the client can call
stream->StartWriteLast()
orstream->startWritesDone()
to tell the server it's done.Is there a way in QT's gRPC interfaces to tell the server that a client is done? The closest it've found is
stream->cancel()
- but that terminates the stream, and the client don't receive the servers single reply-message for the request.I have not tried bidirectional streams yet using QT's interface, but looking at the
QGrpcBidirStream
class, it has only asendMessage()
method and no obvious way to finish the stream from the client. -
Hi,
The module being in TP, I would suggest to open a ticket on the bug report system as it seems to be something that is missing.
-
Hi,
The module being in TP, I would suggest to open a ticket on the bug report system as it seems to be something that is missing.
-