Skip to content

Commit 5600adc

Browse files
authored
Merge pull request #2663 from crosbymichael/publish
Reduce publish connection timeout
2 parents 1ac5ac6 + 1ad4968 commit 5600adc

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)