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

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()),