From a0f541efcfa5a990804e2408664e38b97087c997 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 31 Aug 2025 16:11:27 +1200 Subject: [PATCH] feat: Update 2 files --- source/src/commands/list.cpp | 2 +- source/src/utils/execute.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source/src/commands/list.cpp b/source/src/commands/list.cpp index fea1126..9f15a2d 100644 --- a/source/src/commands/list.cpp +++ b/source/src/commands/list.cpp @@ -125,7 +125,7 @@ void list_servers() { if (it != server_online_status.end()) { is_online = it->second; } else { - // Quick connectivity check with short timeout (already set to 3s in execute.cpp) + // Quick connectivity check sSSHInfo sshinfo = server_env.get_SSH_INFO(sup.user.user); std::string test_cmd = "true"; is_online = execute_ssh_command(sshinfo, sCommand("", test_cmd, {}), cMode::Silent); diff --git a/source/src/utils/execute.cpp b/source/src/utils/execute.cpp index bae8e43..b55e197 100644 --- a/source/src/utils/execute.cpp +++ b/source/src/utils/execute.cpp @@ -165,10 +165,7 @@ namespace dropshell return false; std::stringstream ssh_cmd; - // Add ConnectTimeout to prevent long waits on unreachable servers - // Use shorter timeout (3s) for non-interactive, longer (10s) for interactive - int timeout = hasFlag(mode, cMode::Interactive) ? 10 : 3; - ssh_cmd << "ssh -o ConnectTimeout=" << timeout << " -p " << ssh_info.get_port() << " " + ssh_cmd << "ssh -p " << ssh_info.get_port() << " " << (hasFlag(mode, cMode::Interactive) ? "-tt " : "") << ssh_info.get_user() << "@" << ssh_info.get_host();