We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ce7ecd commit 41aa631Copy full SHA for 41aa631
dialoptions.go
@@ -644,6 +644,7 @@ func defaultDialOptions() dialOptions {
644
UseProxy: true,
645
},
646
recvBufferPool: nopBufferPool{},
647
+ idleTimeout: 30 * time.Minute,
648
}
649
650
@@ -680,8 +681,8 @@ func WithResolvers(rs ...resolver.Builder) DialOption {
680
681
// channel will exit idle mode when the Connect() method is called or when an
682
// RPC is initiated.
683
//
-// By default this feature is disabled, which can also be explicitly configured
684
-// by passing zero to this function.
+// A default timeout of 30 min will be used if this dial option is not set at
685
+// dial time and idleness can be disabled by passing a timeout of zero.
686
687
// # Experimental
688
0 commit comments