On Fri, Jul 30, 2021 at 4:14 AM 'Menghan Li' via
grpc.io
<
grp...@googlegroups.com> wrote:
>
> There's unfortunately no existing way to do this.
>
> One option is to start a goroutine when creating the stream and do your own timeout.
>
> On Saturday, July 24, 2021 at 1:40:45 AM UTC-7
amits...@gmail.com wrote:
>>
>> For unary RPC method calls, passing a context to the RPC method call
>> is an Ok way to ensure that WaitForReady() doesn't hang forever.
>> This is however tricky for streaming RPC method call, since setting
>> the context also determines how long the entire stream will live for.
>>
>> Is there a way to implement an upper limit on how long WaitForRead()
>> waits for the channel to reach the READY state? I think a dedicated
>> goroutine to monitor
>> the state of the channel may work such that it is invoked every time
>> we have a RPC method call..?
>>
>> Thanks,
>> Amit.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to