From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [PATCH v3 3/5] eal: use locks to determine if secondary process is active Date: Wed, 28 Feb 2018 10:15:18 +0000 Message-ID: References: <31f6d9ef676fb1eb0a664c06d62d66f32876dcb6.1519672713.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Tan, Jianfeng" , "dev@dpdk.org" Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6B20B2A5E for ; Wed, 28 Feb 2018 11:15:21 +0100 (CET) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 28-Feb-18 1:26 AM, Tan, Jianfeng wrote: > > >> -----Original Message----- >> From: Burakov, Anatoly >> Sent: Tuesday, February 27, 2018 10:36 PM >> To: dev@dpdk.org >> Cc: Tan, Jianfeng >> Subject: [PATCH v3 3/5] eal: use locks to determine if secondary process is >> active >> >> Previously, IPC would remove sockets it considers to be "inactive" >> based on whether they have responded. > > To be more precise, it was not depending on if the other side responses or not; it was depending on sendmsg return error, ECONNREFUSED. > >> Change this to create lock >> files in addition to socket files, so that we can determine if >> secondary process is active before attempting to communicate with >> it. That way, we can distinguish secondaries that are alive but >> are not responding, from those that have already died. > > I think, by the old way, we can also "distinguish secondaries that are alive but are not responding, from those that have already died", can't we? > > Thanks, > Jianfeng > I rechecked, and you're right. For some reason i thought that nb_sent gets incremented even if there was ECONNREFUSED error. It doesn't, so the effect is the same. I'll drop this patch so (well, i'll keep the naming stuff, as it makes things a bit easier). -- Thanks, Anatoly