From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzrmN-0003jd-EW for qemu-devel@nongnu.org; Fri, 01 May 2009 08:23:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzrmH-0003hZ-IA for qemu-devel@nongnu.org; Fri, 01 May 2009 08:23:45 -0400 Received: from [199.232.76.173] (port=40483 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzrmH-0003hE-8d for qemu-devel@nongnu.org; Fri, 01 May 2009 08:23:41 -0400 Received: from mail2.shareable.org ([80.68.89.115]:34199) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LzrmG-0006Sk-EC for qemu-devel@nongnu.org; Fri, 01 May 2009 08:23:40 -0400 Date: Fri, 1 May 2009 13:23:37 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] PATCH: enabling TCP keepalives - v3 Message-ID: <20090501122337.GC15311@shareable.org> References: <49F9FEBA.6050901@gmail.com> <20090501113204.GA10763@amd.home.annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090501113204.GA10763@amd.home.annexia.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org, David Ahern Richard W.M. Jones wrote: > On Thu, Apr 30, 2009 at 01:40:42PM -0600, David Ahern wrote: > > Did not see a response to the last version. > > > > This patch enables TCP keepalives on VNC connections and TCP-based char > > devices. > > > > Default parameters have keep alive probes sent after 60-seconds of idle > > time. Probes are sent every 12 seconds with the connection resetting > > after 5 failed probes (ie., connection is closed if no response received > > in 60-seconds). > > IMHO this should be optional, and firmly default to _OFF_. Brief > network outages shouldn't result in connections failing all over the > place. In addition, does this negatively impact migration? Note that if either side tries to send actual data, such as due to a mouse movement or screen update, then connections will fail after a TCP timeout anyway. There's no getting away from a network outage tripping it, unless the session is completely idle - static screen, no input. Keepalive just causes the connections to drop when there was no other traffic to detect the connection being down. It's being added because without it, QEMU accumulates connections when the network is really is gone - they never go away. -- Jamie