From 3ea58ce4326b39885a397a4c0965240501b035e8 Mon Sep 17 00:00:00 2001 From: Doug Fawley Date: Tue, 30 May 2023 16:33:59 -0700 Subject: [PATCH] client: disable channel idleness by default (#6328) --- dialoptions.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dialoptions.go b/dialoptions.go index 51c8997d5d18..15a3d5102a9a 100644 --- a/dialoptions.go +++ b/dialoptions.go @@ -628,7 +628,6 @@ func defaultDialOptions() dialOptions { ReadBufferSize: defaultReadBufSize, UseProxy: true, }, - idleTimeout: 30 * time.Minute, } } @@ -665,8 +664,8 @@ func WithResolvers(rs ...resolver.Builder) DialOption { // channel will exit idle mode when the Connect() method is called or when an // RPC is initiated. // -// A default timeout of 30 min will be used if this dial option is not set at -// dial time and idleness can be disabled by passing a timeout of zero. +// By default this feature is disabled, which can also be explicitly configured +// by passing zero to this function. // // # Experimental //