We'd like to avoid holding open a connection for too long from a Ruby 
client. Based on what documentation we've found[1], we've tried adding 
`"grpc.max_connection_age_ms" => 30_000` to the `:channel_args` we pass to 
the stub constructor, hoping to see connections closed after 30 seconds, 
but it seems to have no effect.

I'm watching for the stub's channel's `connectivity_state` to change from 2 
to something else after connecting via either making an RPC call or calling 
`connectivity_state(true)`. If I wait until the server's configured idle 
timeout, I see the connectivity_state go to 3, then 0.

Should that channel arg limit the age of client connections? Is there some 
other way to do that from the client side?

[1]: 
https://grpc.io/grpc/core/group__grpc__arg__keys.html#gabd3a16f46ad2cb5f06064bb607df7b5b

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/fc3c94a1-5a65-4069-82b2-24586843549f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to