From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSgLw-0003vg-5s for qemu-devel@nongnu.org; Thu, 28 Jul 2016 04:07:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSgLs-0006ih-Jy for qemu-devel@nongnu.org; Thu, 28 Jul 2016 04:07:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSgLs-0006id-El for qemu-devel@nongnu.org; Thu, 28 Jul 2016 04:07:32 -0400 Date: Thu, 28 Jul 2016 09:07:27 +0100 From: "Daniel P. Berrange" Message-ID: <20160728080727.GC22677@redhat.com> Reply-To: "Daniel P. Berrange" References: <1469691571-10819-1-git-send-email-caoj.fnst@cn.fujitsu.com> <1469691571-10819-2-git-send-email-caoj.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1469691571-10819-2-git-send-email-caoj.fnst@cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH 1/3] util: remove the obsolete non-blocking connect List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cao jin Cc: qemu-devel@nongnu.org, Gerd Hoffmann , Paolo Bonzini On Thu, Jul 28, 2016 at 03:39:29PM +0800, Cao jin wrote: > The non-blocking connect mechanism is obsolete, and it doesn't work well > in inet connection, because it will call getaddrinfo first and getaddrinfo > will blocks on DNS lookups. Since commit e65c67e4 & d984464e, the non-blocking > connect of migration goes through QIOChannel in a different manner(using a > thread), and nobody use this old non-blocking connect anymore. > > Any newly written code which needs a non-blocking connect should use the > QIOChannel code, so we can just rip out NonBlockingConnectHandler as a > concept entirely. > > Suggested-by: Daniel P. Berrange > Cc: Daniel P. Berrange > Cc: Gerd Hoffmann > Cc: Paolo Bonzini > Signed-off-by: Cao jin Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|