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
This commit is contained in:
Akihiro Suda 2025-03-14 09:30:39 +09:00 committed by GitHub
commit e9989a2147
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,7 +129,8 @@ func New(address string, opts ...Opt) (*Client, error) {
backoffConfig := backoff.DefaultConfig
backoffConfig.MaxDelay = copts.timeout
connParams := grpc.ConnectParams{
Backoff: backoffConfig,
Backoff: backoffConfig,
MinConnectTimeout: copts.timeout,
}
gopts := []grpc.DialOption{
grpc.WithTransportCredentials(insecure.NewCredentials()),