This patch enables TCP keepalives on VNC connections. After 60-seconds of idle time, probes are sent every 2 seconds with the connection resetting after 4 failed probes. This might be a rather aggressive setting -- 8 seconds until connection is reset. Also, I believe this is a linux-specific way of doing this; not sure what the posix/windows method is. Open to suggestions. Yaniv: I do not believe this interferes with the 'shared desktop'. Signed-off-by: David Ahern Avi Kivity wrote: > David S. Ahern wrote: >>>> I don't think so. But enabling keepalives for vnc should be a one >>>> liner (or rather two, since we want to change the default interval). >>>> >> >> What default interval would you prefer over the global values? >> > > The global one is two hours. > > Say sending a probe every two seconds, failing if four probes don't come > back? > > >