1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/console/tests
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
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
daemons.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_consolecallback.py fix(console): a serial console whose VM was deleted meanwhile says so 2026-11-05 18:58:13 +03:00
test_layouts.py feat(console): typed text follows the VM's keyboard layout 2026-10-27 12:23:32 +03:00
test_live_serial.py fix(console): socketiod refuses a request without a signed-in session 2026-11-06 20:00:43 +03:00
test_novncd.py fix(console): a VNC session ends when its host drops off the network 2026-11-10 11:12:21 +03:00
test_socketiod.py fix(console): a session that a password change ended opens no console 2026-11-08 20:47:27 +03:00
test_socketiod_child.py fix(console): socketiod refuses a request without a signed-in session 2026-11-06 20:00:43 +03:00
test_sshtunnels.py fix(console): a VNC console stays open while its screen does not change 2026-11-01 16:18:34 +03:00
test_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