[grpc-js] Setting a channel's idle timeout

259 views
Skip to first unread message

Joshua Karp

unread,
Feb 13, 2022, 11:41:18 PM2/13/22
to grpc.io
I'm wanting to adjust the idle timeout for a gRPC channel (i.e. the time required for the channel to move from a READY state to an IDLE state, as per the core specs) in grpc-js.

gRPC core suggests there's a GRPC_ARG_CLIENT_IDLE_TIMEOUT_MS to change this value (currently defaulting to 300 seconds). I expected this to be part of ChannelOptions or ClientOptions in grpc-js, but couldn't find anything. Is there a way to adjust this?

Michael Lumish

unread,
Feb 14, 2022, 2:09:34 PM2/14/22
to Joshua Karp, grpc.io
grpc-js does not currently support that functionality, so it also does not currently recognize that option.

On Sun, Feb 13, 2022 at 8:41 PM Joshua Karp <j.k...@ozemail.com.au> wrote:
I'm wanting to adjust the idle timeout for a gRPC channel (i.e. the time required for the channel to move from a READY state to an IDLE state, as per the core specs) in grpc-js.

gRPC core suggests there's a GRPC_ARG_CLIENT_IDLE_TIMEOUT_MS to change this value (currently defaulting to 300 seconds). I expected this to be part of ChannelOptions or ClientOptions in grpc-js, but couldn't find anything. Is there a way to adjust this?

--
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 grpc-io+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/2ec8eb2a-132e-40e6-b3c2-a3081922f8aan%40googlegroups.com.

Joshua Karp

unread,
Feb 14, 2022, 6:03:37 PM2/14/22
to grpc.io
Thanks for the reply - I've created a feature request for this upstream.
Reply all
Reply to author
Forward
0 new messages