Received: from eggs.gnu.org ([2001:4830:134:3::10]:57362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLPfI-0007xm-1b for qemu-devel@nongnu.org; Thu, 15 Jun 2017 03:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLPfH-0003bl-Ar for qemu-devel@nongnu.org; Thu, 15 Jun 2017 03:58:04 -0400 References: <20170615030801.6260-1-maozy.fnst@cn.fujitsu.com> <87mv99aelr.fsf@secure.mitica> From: Mao Zhongyi Message-ID: Date: Thu, 15 Jun 2017 15:56:27 +0800 MIME-Version: 1.0 In-Reply-To: <87mv99aelr.fsf@secure.mitica> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] util: remove the obsolete non-blocking connect List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: qemu-devel@nongnu.org, kwolf@redhat.com, qemu-block@nongnu.org, mitake.hitoshi@lab.ntt.co.jp, jcody@redhat.com, mreitz@redhat.com, sheepdog@lists.wpkg.org, Cao jin , kraxel@redhat.com, pbonzini@redhat.com, namei.unix@gmail.com On 06/15/2017 03:34 PM, Juan Quintela wrote: > Mao Zhongyi wrote: >> From: Cao jin >> >> 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 drop NonBlockingConnectHandler > > > Reviewed-by: Juan Quintela > > > ... > >> int inet_connect_saddr(InetSocketAddress *saddr, >> - NonBlockingConnectHandler *callback, void *opaque, >> Error **errp); > > In case you have to respin it. > > Now you can write the prototype in a single line, no? > Same for the rest of appearances. > OK, I see, will fix it in the next version. Thanks Mao