OSC / ood_core

Open OnDemand core library
https://osc.github.io/ood_core/
MIT License
10 stars 30 forks source link

Add configurable websocket heartbeat #826

Closed scratchings closed 8 months ago

scratchings commented 9 months ago

Without the --heartbeat option the VNC session will timeout after 1 minute of idle time. This adds --heartbeat with a default of 30 seconds, configurable with websockify_hb in the context or the environment variable WEBSOCKIFY_HB.

This implements the VNC timeout workaround mentioned in VNC timeout

The VNC app in OSC/ondemand will need to be updated to recognise the websockify_hb context variable.

johrstrom commented 9 months ago

First off, yes please and thank you! I was going to patch this for the next release, so thank you for beating me to it!