1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/console
catborise ae3496ac50 fix(console): a VNC session ends when its host drops off the network
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
2026-11-10 11:12:21 +03:00
..
layouts feat(console): typed text follows the VM's keyboard layout 2026-10-27 12:23:32 +03:00
migrations Add app 2015-02-27 14:25:41 +02:00
templates chore(console): the console pages load no jQuery 2026-11-05 12:37:51 +03:00
tests fix(console): a VNC session ends when its host drops off the network 2026-11-10 11:12:21 +03:00
__init__.py Add app 2015-02-27 14:25:41 +02:00
models.py ci: replace super-linter with ruff 2026-10-04 01:08:11 +03:00
novncd fix(console): a VNC session ends when its host drops off the network 2026-11-10 11:12:21 +03:00
refusals.py fix(i18n): refusals and checks users read are translated 2026-11-06 23:48:53 +03:00
socketiod fix(console): a serial console token works only in its user's session 2026-11-08 18:01:30 +03:00
sshtunnels.py fix(console): a VNC console stays open while its screen does not change 2026-11-01 16:18:34 +03:00
tokens.py fix(console): a session that a password change ended opens no console 2026-11-08 20:47:27 +03:00
views.py fix(console,computes): an unreachable host is named as the cause, not an empty list 2026-11-06 23:08:11 +03:00