From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LwIzy-0000Xr-06 for qemu-devel@nongnu.org; Tue, 21 Apr 2009 12:39:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LwIzs-0000Sj-02 for qemu-devel@nongnu.org; Tue, 21 Apr 2009 12:39:05 -0400 Received: from [199.232.76.173] (port=41659 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwIzr-0000SJ-Lb for qemu-devel@nongnu.org; Tue, 21 Apr 2009 12:38:59 -0400 Received: from mx2.redhat.com ([66.187.237.31]:34394) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LwIzr-0003WS-49 for qemu-devel@nongnu.org; Tue, 21 Apr 2009 12:38:59 -0400 Message-ID: <49EDF69E.9080901@redhat.com> Date: Tue, 21 Apr 2009 19:38:54 +0300 From: Yaniv Kaul MIME-Version: 1.0 Subject: Re: [Qemu-devel] resetting a stale VNC connection References: <49EDC3B4.7030508@cisco.com> <49EDCC6F.1020703@redhat.com> <49EDE1EF.4070203@cisco.com> <49EDF082.4050900@redhat.com> <49EDF220.2040200@redhat.com> <49EDF434.3000202@cisco.com> In-Reply-To: <49EDF434.3000202@cisco.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "David S. Ahern" Cc: Avi Kivity , qemu-devel@nongnu.org On 4/21/2009 7:28 PM, David S. Ahern wrote: > Yaniv Kaul wrote: > >> On 4/21/2009 7:12 PM, Avi Kivity wrote: >> >>> David S. Ahern wrote: >>> >>>> 'egrep -r SO_KEEPALIVE qemu' did not turn up any hits for the VNC code. >>>> Can it be enabled within qemu via command line arg? >>>> >>> It's not in the code AFAIK. I was suggesting to add it >>> (unconditionally). >>> > > Ok, I misunderstood your last response. I'll add it, unconditionally. > > >>>> I am not aware of an OS setting to enable keepalives for all sockets. Is >>>> there one in RHEL5? >>>> >>> 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? > > >> I think it should (also?) honor the 'shared desktop' flag. >> > > What do you mean by the 'shared desktop' flag? > VNC clients send a flag called 'shared-flag' in their init message. >>From http://www.realvnc.com/docs/rfbproto.pdf , section 6.3.1 ClientInit: Shared-flag is non-zero (true) if the server should try to share the desktop by leaving other clients connected, zero (false) if it should give exclusive access to this client by disconnecting all other clients. > david >