I am trying to understand how keepalive or idle connection works with gRPC. 
I have bidirectional streaming RPC, where I create session and do nothing 
so that there is no activity on the channel.

1. If there is no activity, GRPC_ARG_KEEPALIVE_TIME_MS signal will be 
blocked (https://github.com/grpc/grpc/blob/master/doc/keepalive.md#faq) and 
connection will be closed after this interval, however, it does not 
terminate and I see keepalive ping is sent and received. why?

2. If we do not set any params, is there any timeout after which connection 
will be automatically closed? If yes, how do I change this behaviour, which 
param?

-- 
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/9f5f1698-20b5-46af-8090-456b7a83e935n%40googlegroups.com.

Reply via email to