Skip to content

Commit 3ea58ce

Browse files
authored
client: disable channel idleness by default (#6328)
1 parent 6c2529b commit 3ea58ce

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

dialoptions.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ func defaultDialOptions() dialOptions {
628628
ReadBufferSize: defaultReadBufSize,
629629
UseProxy: true,
630630
},
631-
idleTimeout: 30 * time.Minute,
632631
}
633632
}
634633

@@ -665,8 +664,8 @@ func WithResolvers(rs ...resolver.Builder) DialOption {
665664
// channel will exit idle mode when the Connect() method is called or when an
666665
// RPC is initiated.
667666
//
668-
// A default timeout of 30 min will be used if this dial option is not set at
669-
// dial time and idleness can be disabled by passing a timeout of zero.
667+
// By default this feature is disabled, which can also be explicitly configured
668+
// by passing zero to this function.
670669
//
671670
// # Experimental
672671
//

0 commit comments

Comments
 (0)