Timeout issue
This commit is contained in:
@@ -137,7 +137,7 @@ wss.on('connection', (ws: WebSocket) => {
|
|||||||
ws.send(JSON.stringify({type: 'error', message: 'SSH connection timeout'}));
|
ws.send(JSON.stringify({type: 'error', message: 'SSH connection timeout'}));
|
||||||
cleanupSSH(connectionTimeout);
|
cleanupSSH(connectionTimeout);
|
||||||
}
|
}
|
||||||
}, 15000);
|
}, 60000);
|
||||||
|
|
||||||
sshConn.on('ready', () => {
|
sshConn.on('ready', () => {
|
||||||
clearTimeout(connectionTimeout);
|
clearTimeout(connectionTimeout);
|
||||||
@@ -217,7 +217,7 @@ wss.on('connection', (ws: WebSocket) => {
|
|||||||
username,
|
username,
|
||||||
keepaliveInterval: 30000,
|
keepaliveInterval: 30000,
|
||||||
keepaliveCountMax: 3,
|
keepaliveCountMax: 3,
|
||||||
readyTimeout: 10000,
|
readyTimeout: 60000,
|
||||||
tcpKeepAlive: true,
|
tcpKeepAlive: true,
|
||||||
tcpKeepAliveInitialDelay: 30000,
|
tcpKeepAliveInitialDelay: 30000,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user