SSH connection timeout #122

Merged
rodrigopolo merged 2 commits from main into dev-1.4.0 2025-08-30 04:24:27 +00:00
Showing only changes of commit 8058ffd217 - Show all commits

View File

@@ -137,7 +137,7 @@ wss.on('connection', (ws: WebSocket) => {
ws.send(JSON.stringify({type: 'error', message: 'SSH connection timeout'}));
cleanupSSH(connectionTimeout);
}
}, 15000);
}, 60000);
sshConn.on('ready', () => {
clearTimeout(connectionTimeout);
@@ -217,7 +217,7 @@ wss.on('connection', (ws: WebSocket) => {
username,
keepaliveInterval: 30000,
keepaliveCountMax: 3,
readyTimeout: 10000,
readyTimeout: 60000,
tcpKeepAlive: true,
tcpKeepAliveInitialDelay: 30000,