Skip to content

Commit e9989a2

Browse files
authored
Merge pull request #11536 from k8s-infra-cherrypick-robot/cherry-pick-11508-to-release/2.0
[release/2.0] Respect `client.WithTimeout` option on connect
2 parents b6ab437 + 6b5efba commit e9989a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

client/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ func New(address string, opts ...Opt) (*Client, error) {
129129
backoffConfig := backoff.DefaultConfig
130130
backoffConfig.MaxDelay = copts.timeout
131131
connParams := grpc.ConnectParams{
132-
Backoff: backoffConfig,
132+
Backoff: backoffConfig,
133+
MinConnectTimeout: copts.timeout,
133134
}
134135
gopts := []grpc.DialOption{
135136
grpc.WithTransportCredentials(insecure.NewCredentials()),

0 commit comments

Comments
 (0)