Skip to content

Commit 1ad4968

Browse files
committed
Reduce publish connection timeout
Fixes #2662 Signed-off-by: Michael Crosby <[email protected]>
1 parent 1ac5ac6 commit 1ad4968

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/containerd/command/publish.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func connect(address string, d func(string, time.Duration) (net.Conn, error)) (*
9999
grpc.FailOnNonTempDialError(true),
100100
grpc.WithBackoffMaxDelay(3 * time.Second),
101101
}
102-
ctx, cancel := gocontext.WithTimeout(gocontext.Background(), 60*time.Second)
102+
ctx, cancel := gocontext.WithTimeout(gocontext.Background(), 2*time.Second)
103103
defer cancel()
104104
conn, err := grpc.DialContext(ctx, dialer.DialAddress(address), gopts...)
105105
if err != nil {

0 commit comments

Comments
 (0)