You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new --connect-timeout option to bssh that sets the SSH connection timeout separately from the command execution timeout. This is a prerequisite for pdsh compatibility mode.
Parent Issue
Part of #91 (pdsh compatibility mode) - Phase 1: New Options for Feature Parity
Background
pdsh distinguishes between two types of timeouts:
-t seconds: Connection timeout (how long to wait for SSH connection, default 10s)
-u seconds: Command timeout (how long to allow command to run)
Currently bssh has --timeout which controls command execution timeout, but lacks a separate connection timeout option. This distinction is important for:
Slow networks where connection takes longer
Fast operations where command should timeout quickly but connection can take time
Fine-grained control over failure modes
Current Behavior
// In src/ssh/client.rsconstDEFAULT_CONNECT_TIMEOUT:Duration = Duration::from_secs(30);
The connection timeout is currently hardcoded at 30 seconds.
Activity
inureyes commentedon Dec 16, 2025
Implementation Complete
The
--connect-timeoutoption has been fully implemented with all code review issues fixed.Changes Made
Commit 4c6ffe0:
feat: Add --connect-timeout option for SSH connection timeout--connect-timeoutCLI option with default value of 30 secondsCommit e068545:
fix: Propagate connect_timeout through all SSH connection pathsUsage
Acceptance Criteria Met
--connect-timeout Nsets SSH connection timeout to N seconds--timeout(command timeout)