I think you will have to implement this type of custom timer logic in your 
Python service handler, and cancel the stream when the timer expires. I'm 
not sure if we have an example showing server-side cancellation, but you 
can find a question and answer describing how to do this at 
https://stackoverflow.com/questions/55160210/python-grpc-cancel-unary-stream-call-from-client-side
.

Thanks,

Eric 

On Sunday, August 23, 2020 at 11:32:08 AM UTC-7 Ka Wai Raymond Sze wrote:

> This is what I would like to achieve....
> Client call the bidirectional method, the server side receive the message 
> from client and if the server does not receive any message from client 
> within a specific time interval, abort the connection, this timer would be 
> refreshed once message is received.
> I cannot find any example in gRPC Python doing that.
>
> Thanks.
>

-- 
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/06835349-c44e-4a30-acbe-b7ef90569cacn%40googlegroups.com.

Reply via email to