mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-22 16:10:50 +00:00
The main openSftp() connection path was building ssh2 connect options without setting keepaliveInterval at all, so no SSH-level keepalive packets were sent on the SFTP channel. When the SFTP panel sits idle (the common case while a user browses files), NAT/firewall state tables reap the idle TCP connection after ~30-60s, causing the panel to disconnect while the SSH terminal next to it — which has its own keepalive config via sshBridge — stays connected. That matches the exact symptom reported in #669. Default to a 10s keepalive interval, matching the existing SFTP jump host path (sftpBridge.cjs:466-467). Honor an explicitly configured positive options.keepaliveInterval (in seconds) if one is passed in, so the frontend can thread the user setting through later without another bridge change. Closes #669 Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>