Skip to content

Commit

Permalink
client: disable channel idleness by default (#6328)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfawley authored May 30, 2023
1 parent 6c2529b commit 3ea58ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dialoptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ func defaultDialOptions() dialOptions {
ReadBufferSize: defaultReadBufSize,
UseProxy: true,
},
idleTimeout: 30 * time.Minute,
}
}

Expand Down Expand Up @@ -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
//
Expand Down

0 comments on commit 3ea58ce

Please sign in to comment.