Relationships
↔ sibling #4768#4747 @swamp/ssh: `timeoutSec` is not honoured when ControlMaster is on
Opened by randybias · 11/14/2026· Shipped 11/15/2026
Versions: @swamp/ssh 2026.10.23.1, swamp 20261113.232530.0, OpenSSH client on Ubuntu 24.04, target Ubuntu 24.04.
What happens: exec with argv: ["sleep", "30"] and timeoutSec: 3 reports the host as "killed by SIGTERM", but
only after 30.4 seconds, when the remote command finishes by itself. With the same fleet and
controlMaster: { enabled: false }, the same call returns after 3.4 seconds. In both cases the remote command keeps
running after the timeout: sleep 30 was still on the target 6 seconds in.
What we expected: the method returns about timeoutSec seconds after starting, also with ControlMaster on (the
default). Ideally the remote command is stopped too, or the documentation says it is not.
Shortest reproduction:
- A fleet with one host and default transport settings (ControlMaster on).
- Run
execwithargv: ["sleep", "30"]andtimeoutSec: 3. - It takes about 30 seconds. Repeat with
controlMaster: { enabled: false }: about 3 seconds.
Why it matters: a timeout is what lets a workflow give up on a hung command. With the default settings it gives up only when the command ends anyway, so a command that never returns stalls the workflow.
Upstream repository: https://github.com/swamp-club/swamp-extensions
Environment
- Extension:
@swamp/ssh@2026.10.23.1 - swamp:
20261031.063736.0-sha.e459d219 - OS:
darwin(aarch64) - Deno:
2.9.8 - Shell:
/opt/homebrew/bin/zsh
Shipped
Click a lifecycle step above to view its details.
system commented 11/14/2026, 11:11:15 AM
Classified automatically when this issue was filed.
- Source: Extensions
If you feel this classification is incorrect, add a ripple to tell us so.
stack72 commented 11/15/2026, 10:39:41 PM
Thanks @randybias for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.
Sign in to post a ripple.