Skip to content

Commit

Permalink
grpc: re-enable channel idleness by default (#6585)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars authored Aug 29, 2023
1 parent 8b1a671 commit 9362f26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dialoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ func defaultDialOptions() dialOptions {
UseProxy: true,
},
recvBufferPool: nopBufferPool{},
idleTimeout: 30 * time.Minute,
}
}

Expand Down Expand Up @@ -680,8 +681,8 @@ func WithResolvers(rs ...resolver.Builder) DialOption {
// channel will exit idle mode when the Connect() method is called or when an
// RPC is initiated.
//
// By default this feature is disabled, which can also be explicitly configured
// by passing zero to this function.
// A default timeout of 30 minutes will be used if this dial option is not set
// at dial time and idleness can be disabled by passing a timeout of zero.
//
// # Experimental
//
Expand Down

0 comments on commit 9362f26

Please sign in to comment.