From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTA2H-0001tl-C7 for qemu-devel@nongnu.org; Fri, 19 Apr 2013 08:03:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTA2C-0004ZJ-QA for qemu-devel@nongnu.org; Fri, 19 Apr 2013 08:03:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTA2C-0004Z6-Ip for qemu-devel@nongnu.org; Fri, 19 Apr 2013 08:03:20 -0400 Date: Fri, 19 Apr 2013 14:03:09 +0200 From: Stefan Hajnoczi Message-ID: <20130419120309.GB23751@stefanha-thinkpad.redhat.com> References: <1366187964-14265-1-git-send-email-qemulist@gmail.com> <1366187964-14265-7-git-send-email-qemulist@gmail.com> <20130418143417.GB23230@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [RFC PATCH v4 06/15] net: port socket to GSource List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liu ping fan Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, mdroth , Anthony Liguori , Jan Kiszka , Paolo Bonzini On Fri, Apr 19, 2013 at 01:58:40PM +0800, liu ping fan wrote: > On Thu, Apr 18, 2013 at 10:34 PM, Stefan Hajnoczi wrote: > > On Wed, Apr 17, 2013 at 04:39:15PM +0800, Liu Ping Fan wrote: > > I'm a little worried that we're lacking G_IO_HUP | G_IO_ERR. Perhaps > > disconnect and network errors will be ignored. > > > NetSocketState can do limited things about these situation, perhaps, > implement net_socket_can_receive() to export such message to frontend > ? net/socket.c uses G_IO_HUP | G_IO_ERR today, see iohandler.c:qemu_iohandler_fill(). This patch *stops* using them. My question is: why stop and is it correct? Stefan