Skip to content

Commit 83a5273

Browse files
🤖 fix: increase SSH resolvePath timeout to 10s (#556)
SSH workspace creation was timing out after 5s on slower connections. The connection would have succeeded with more time. Increased timeout from 5s to 10s in `resolvePath()` to accommodate slower networks or hosts under load. ProxyCommand `coder ssh` is quite slow for me right now & I was hitting this timeout semi frequently. (I like Coder Desktop because it's nowhere near this slow for new ssh connections) _Generated with `cmux`_
1 parent 0bc0e7e commit 83a5273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime/SSHRuntime.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ export class SSHRuntime implements Runtime {
377377
// Bash will expand ~ automatically when we echo the unquoted variable
378378
// This works with BusyBox (doesn't require GNU coreutils)
379379
const command = `bash -c 'p=${shescape.quote(filePath)}; echo $p'`;
380-
// Use 5 second timeout for path resolution (should be near-instant)
381-
return this.execSSHCommand(command, 5000);
380+
// Use 10 second timeout for path resolution to allow for slower SSH connections
381+
return this.execSSHCommand(command, 10000);
382382
}
383383

384384
/**

0 commit comments

Comments
 (0)