Skip to content

Commit 41aa631

Browse files
committed
grpc: re-enable channel idleness by default
1 parent 2ce7ecd commit 41aa631

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dialoptions.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ func defaultDialOptions() dialOptions {
644644
UseProxy: true,
645645
},
646646
recvBufferPool: nopBufferPool{},
647+
idleTimeout: 30 * time.Minute,
647648
}
648649
}
649650

@@ -680,8 +681,8 @@ func WithResolvers(rs ...resolver.Builder) DialOption {
680681
// channel will exit idle mode when the Connect() method is called or when an
681682
// RPC is initiated.
682683
//
683-
// By default this feature is disabled, which can also be explicitly configured
684-
// by passing zero to this function.
684+
// 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.
685686
//
686687
// # Experimental
687688
//

0 commit comments

Comments
 (0)