x11vnc
x11vnc copied to clipboard
Determine failed network connection and kick clients
I Start a VNC server with the following:
x11vnc -display :0 -ping 30 -auth /root/.Xauthority -forever -loop -noxdamage -repeat -rfbauth /root/.vnc/passwd -rfbport 5900 -shared
When remote viewing via client, if I physically disconnect the client the server still thinks I have a client connected - presumably because the TCP connection is just sitting idle and no data is being requested - which is valid.
How can I force the VNC server to close the client when it's been idle for a time period? I attempted to use '-ping 30' to force a 1x1 update every 30 seconds, in the hope that the server would force a close upon failure, but this doesn't work. When I x11vnc -query ping the answer comes back as 0 (disabled).
TigerVNC has 'Idletimeout'....does x11vnc have anything similar?