fix(FN-958): fix terminal idle disconnect with heartbeat tolerance
- Add heartbeat tolerance window to prevent false idle disconnects on terminal connections - Increase client heartbeat interval from 30s to 45s for better idle tolerance - Add session staleness detection on reconnect with idle state logging - Add tests for heartbeat tolerance and client interval configuration - Add changeset for patch release
This commit is contained in:
@@ -41,7 +41,7 @@ interface BufferedMessages {
|
||||
|
||||
const MAX_RECONNECT_ATTEMPTS = 5;
|
||||
const INITIAL_RECONNECT_DELAY = 1000;
|
||||
const HEARTBEAT_INTERVAL = 30000;
|
||||
const HEARTBEAT_INTERVAL = 45000; // 45 seconds — slightly longer than server's 30s interval
|
||||
|
||||
function createEmptyBuffer(): BufferedMessages {
|
||||
return { scrollback: null, connected: null, data: [] };
|
||||
|
||||
Reference in New Issue
Block a user