1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

fix(console): a VNC console stays open while its screen does not change

nginx ends a proxied websocket that sends nothing for 60 seconds, and the
VNC console sends nothing while the VM's screen stays the same: an idle
console, an installer's progress screen, closed after a minute and had to
be connected again. novncd now pings the browser every 30 seconds. The SSH
tunnel of an SSH compute sends a keepalive as often, for a firewall on the
way that ends idle connections.
This commit is contained in:
catborise 2026-11-01 14:57:50 +03:00
parent 005fa59bf0
commit 0cd687e035
3 changed files with 7 additions and 2 deletions

View file

@ -165,4 +165,7 @@ if __name__ == "__main__":
web=False,
target_host="ignore",
target_port="ignore",
# a ping while the VM's screen stays the same: nginx, and a proxy on
# the way, end a websocket that sends nothing for 60 seconds
heartbeat=30,
).start_server()