mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
novncd connects to a VM's VNC server directly when it listens on a reachable address, with no timeout once connected: a console may stay quiet for long. When the network to the host dropped without a word, nothing noticed it; the browser kept a frozen console and novncd its proxy process until the user closed the tab or the kernel gave up after many minutes. The socket now has TCP keepalive (30 s idle, then 3 probes 10 s apart) and TCP_USER_TIMEOUT (60 s for data left unanswered). Measured against compute1 with the port's packets dropped: quiet and busy sockets both ended after 61 s; a socket without these options still waited after 200 s. SSH-tunnelled consoles already have SSH's keepalive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| daemons.py | ||
| test_consolecallback.py | ||
| test_layouts.py | ||
| test_live_serial.py | ||
| test_novncd.py | ||
| test_socketiod.py | ||
| test_socketiod_child.py | ||
| test_sshtunnels.py | ||
| test_views.py | ||