Received: from eggs.gnu.org ([208.118.235.92]:44294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SceWQ-0001T6-BV for qemu-devel@nongnu.org; Thu, 07 Jun 2012 11:21:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SceWG-0001vf-B1 for qemu-devel@nongnu.org; Thu, 07 Jun 2012 11:21:13 -0400 Received: from indium.canonical.com ([91.189.90.7]:38205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SceWG-0001st-4F for qemu-devel@nongnu.org; Thu, 07 Jun 2012 11:21:04 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SceWE-0003oG-Ed for ; Thu, 07 Jun 2012 15:21:02 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id A37ED2E80D6 for ; Thu, 7 Jun 2012 15:20:59 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Jun 2012 15:10:47 -0000 From: Vincent Autefage <1003054@bugs.launchpad.net> Sender: bounces@canonical.com References: <20120522183202.907.70533.malonedeb@wampee.canonical.com> Message-Id: <20120607151048.21962.78506.launchpad@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1003054] Re: Socket not closed when a connection ends Reply-To: Bug 1003054 <1003054@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Changed in: qemu Status: New =3D> Fix Released -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1003054 Title: Socket not closed when a connection ends Status in QEMU: Fix Released Bug description: Hi, I've noticed in the QEMU monitor that when a TCP connection between to QEMU virtual machines is closed in one side, the other side is not closed. Consequence is that the network behavior is completely messed up in case of a reconnection. For instance, we consider that we have 2 virtual machines : $ qemu -name A -net nic vlan=3D0 -net socket,vlan=3D0,listen=3D127.0.0.1:= 7000 $ qemu -name B -net nic vlan=3D0 -net socket,vlan=3D0,connect=3D127.0.0.1= :7000 If the socket of B is closed (error or machine down), the socket in A is not closed : B % host_net_remove 0 socket.0 A % info network e1000.0: ... socket.0: ... (The removed connection) B % host_net_add socket vlan=3D0,connect=3D127.0.0.1:7000 A % info network e1000.0: ... socket.0: ... (The removed connection) socket.1: ... (The new connection) By not perform any close on sockets of A, the new communication between A and B is corrupted (duplicated packets, invalid transmission, etc.). In the case of the close was performed by A, B should detect a problem on the socket and retry a new connection, unfortunately, this is not the case. = Those two problems corrupt the dynamicity of a QEMU topology which could = be strongly problematic for the development of network tools based on QEMU. Thanks a lot. Vince To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1003054/+subscriptions