Skip to content

Commit 49315fa

Browse files
authored
Merge pull request #2758 from hanlins/v0.37-backport-2749
Cherrypick to v0.37: Fix timeout flooding issue after containerd restart
2 parents 0d3dfd7 + 36a29fe commit 49315fa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

container/containerd/client.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ func Client(address, namespace string) (ContainerdClient, error) {
6565
tryConn.Close()
6666

6767
connParams := grpc.ConnectParams{
68-
Backoff: backoff.Config{
69-
BaseDelay: baseBackoffDelay,
70-
MaxDelay: maxBackoffDelay,
71-
},
68+
Backoff: backoff.DefaultConfig,
7269
}
70+
connParams.Backoff.BaseDelay = baseBackoffDelay
71+
connParams.Backoff.MaxDelay = maxBackoffDelay
7372
gopts := []grpc.DialOption{
7473
grpc.WithInsecure(),
7574
grpc.WithContextDialer(dialer.ContextDialer),

0 commit comments

Comments
 (0)