Skip to content

Commit 8abe3f0

Browse files
authored
increase initial command timeout to 30s from 5s (slow WSL start) (#2853)
1 parent 4b77ce6 commit 8abe3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/wslconn/wslconn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ func (conn *WslConn) StartConnServer(ctx context.Context, afterUpdate bool) (boo
286286
return false, "", "", fmt.Errorf("unable to start conn controller cmd: %w", err)
287287
}
288288
linesChan := utilfn.StreamToLinesChan(pipeRead)
289-
versionLine, err := utilfn.ReadLineWithTimeout(linesChan, 5*time.Second)
289+
versionLine, err := utilfn.ReadLineWithTimeout(linesChan, 30*time.Second)
290290
if err != nil {
291291
cancelFn()
292292
return false, "", "", fmt.Errorf("error reading wsh version: %w", err)

0 commit comments

Comments
 (0)