From b723fd433ca6420e28dba074565e515112faa547 Mon Sep 17 00:00:00 2001 From: linzack Date: Tue, 23 Jun 2026 14:16:05 +0800 Subject: [PATCH] fix(ssh): prevent keepalive flooding by mapping null/0 keepaliveInterval to undefined (#11340) --- tabby-ssh/src/session/ssh.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-ssh/src/session/ssh.ts b/tabby-ssh/src/session/ssh.ts index 2494a34a..846aacf3 100644 --- a/tabby-ssh/src/session/ssh.ts +++ b/tabby-ssh/src/session/ssh.ts @@ -426,7 +426,7 @@ export class SSHSession { key: this.profile.options.algorithms[SSHAlgorithmType.HOSTKEY].filter(x => supportedAlgorithms[SSHAlgorithmType.HOSTKEY].includes(x)), compression: this.profile.options.algorithms[SSHAlgorithmType.COMPRESSION].filter(x => supportedAlgorithms[SSHAlgorithmType.COMPRESSION].includes(x)), }, - keepaliveIntervalSeconds: Math.round(this.profile.options.keepaliveInterval / 1000), + keepaliveIntervalSeconds: this.profile.options.keepaliveInterval ? Math.round(this.profile.options.keepaliveInterval / 1000) : undefined, keepaliveCountMax: this.profile.options.keepaliveCountMax, connectionTimeoutSeconds: this.profile.options.readyTimeout ? Math.round(this.profile.options.readyTimeout / 1000) : undefined, },