INNER CODE UNIT · JavaScript

CONNECTION_TIMEOUT

bvisible/mcp-ssh-manager · src/index.js:238

const CONNECTION_TIMEOUT = 30 * 60 * 1000;

// Keepalive interval in milliseconds (5 minutes)
const KEEPALIVE_INTERVAL = 5 * 60 * 1000;

// Map to store keepalive intervals
const keepaliveIntervals = new Map();

// Extra grace window so the remote `timeout` wrapper can exit cleanly
// and return its timeout exit code before the local SSH exec timeout fires.
const WRAPPED_COMMAND_TIMEOUT_GRACE_MS = 5000;

// Map to track proxy jump dependencies (target -> jump server)
const jumpDependencies = new Map();

// Load server configuration (backward compatibility wrapper)
async function loadServerConfig() {
  // This function is kept for backward compatibility

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…