Skip to content

fix(ssh): add connection timeout and cancel on tab close - #201

Merged
Cleboost merged 1 commit into
masterfrom
fix/ssh-connect-timeout-and-cancel
Nov 26, 2026
Merged

Cleboost merged 1 commit into
masterfrom
fix/ssh-connect-timeout-and-cancel

Conversation

@Cleboost

Copy link
Copy Markdown
Owner

Summary

  • Add a 15-second tokio::time::timeout around client::connect(...) in run_ssh so non-routable hosts fail promptly instead of hanging on the OS TCP timeout.
  • Store a tokio::task::AbortHandle on SshSession and abort the Tokio task when closing a tab that is still connecting (!removed.connected), while keeping SshCommand::Close for established sessions.

Test plan

  • cargo test (12 passed, 0 failed)

@Cleboost
Cleboost merged commit 8e7d5b1 into master Nov 26, 2026
3 checks passed
@Cleboost
Cleboost deleted the fix/ssh-connect-timeout-and-cancel branch November 26, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant