I'm trying to use server trailing metadata 
(https://chromium.googlesource.com/external/github.com/grpc/grpc/+/HEAD/examples/cpp/metadata).

But the metadata doesn't seem to be propagated to the client unless the 
return status is "OK" ?

fredag 15 januari 2021 kl. 09:44:03 UTC+1 skrev [email protected]:

> I'm writing a proxy which is put between a gRPC client and a server, which 
> need to implement a bidirectional streaming RPC.
>
> Problem is that reading the client stream can only be cancelled with 
> context->TryCancel(). And this will make the RPC return status CANCELLED 
> (in the client) regardless of what actually is returned in the server RPC 
> itself.
>
> Any idea on how to interrupt the stream->Read(...) call without 
> TryCancel()? Is it possible to have a polled Read of the stream, so I can 
> monitor and interrupt the RPC call?
>
> Regards
> /R
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/06698a97-58c0-4e61-b5d7-e3f55b28433dn%40googlegroups.com.

Reply via email to