From 1e146ad4f5b874bd9d700699c988b85b595dbea5 Mon Sep 17 00:00:00 2001 From: Alec Fong Date: Fri, 11 Oct 2024 22:18:29 +0000 Subject: [PATCH] increase connection timeout for brev open --- pkg/cmd/open/open.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/open/open.go b/pkg/cmd/open/open.go index 1509bd3d..922d7620 100644 --- a/pkg/cmd/open/open.go +++ b/pkg/cmd/open/open.go @@ -298,7 +298,7 @@ func openVsCodeWithSSH( func waitForSSHToBeAvailable(t *terminal.Terminal, s *spinner.Spinner, sshAlias string) error { counter := 0 for { - cmd := exec.Command("ssh", "-o", "ConnectTimeout=1", sshAlias, "echo", " ") + cmd := exec.Command("ssh", "-o", "ConnectTimeout=3", sshAlias, "echo", " ") out, err := cmd.CombinedOutput() if err == nil { return nil