Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp653433pxb; Wed, 13 Jan 2021 12:31:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYZT+ngD0lhtw074dPRAgaFrXfg68Q+b347mFUUlJGpy3CfRJItTWZutl0jkBmf8i9NKtd X-Received: by 2002:aa7:d494:: with SMTP id b20mr3343304edr.330.1610569899590; Wed, 13 Jan 2021 12:31:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610569899; cv=none; d=google.com; s=arc-20160816; b=Ywj76r8Eq4LjrDAr2lNtjqXsy7ED16PrRaQJGlDgx24E2L6dkgQRoCGkuWBqlMaXwJ eSdPI1l6zNPEI9qKUtlbElv+Tx7zMkSTqW4wShqWPl2t/IXtIaGrDb2cwl8dfkfBLQGw qGzTjPapJPIPI2EZ/VXq6SP6dMUM8DsYaloQIA+fpBZ3eghw/Tu/nFQYpAuygLXFZlRh i6l3uUf4/Ws4Xt/BgQymxgIfdyQpVDKe9eybwA8IMBEytNXFGI6u0KGGPViPc9OXBlt8 T7h/2n2/xw0dgu1PCOckoSWkaYaP3aCA4Z8avvhLxVEKvlOPx1Z7sH7ds+UEpLCfuAAI TjsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jLUkwOEZZymFceGAr0IzTr+GxfxreGrJDbxkHS4zq74=; b=W5W1TVAlXjaAN04XqC+2kTStX0ldPizWfA5WuNIuJ3YW2QKGFiNa90BJ/eTjWzdjyE uERFgsCGSL4MPK7fmiNn9I9UYtPJ/7Mtmaiquo+cT+MVRchskM27WWccNW5JqpVeyWju ePP4FXH+mnpVMToKgQZt3eRn11GAqYNw00PI2lbPCxEi0ImXgR0D2ta6R6xDrE7LLhVQ /u5ExWiYXrAB1+SNc9zxeXQB85kdMGytkRRHFgiarNKjcVBH4r0+ipP9QLMilz2Uv1wi 8hcfp8v5kCmgHAo791J7Hg5J5ye8OSmWfQMSQKX5Sj7Nxt3DAHQH3v+hCkF4K6P/IIAc w5ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tlDHxSM2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si1431153ejd.409.2021.01.13.12.31.14; Wed, 13 Jan 2021 12:31:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tlDHxSM2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbhAMU25 (ORCPT + 99 others); Wed, 13 Jan 2021 15:28:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728842AbhAMU24 (ORCPT ); Wed, 13 Jan 2021 15:28:56 -0500 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B06C061794; Wed, 13 Jan 2021 12:28:16 -0800 (PST) Received: by mail-ot1-x335.google.com with SMTP id d20so3175052otl.3; Wed, 13 Jan 2021 12:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=jLUkwOEZZymFceGAr0IzTr+GxfxreGrJDbxkHS4zq74=; b=tlDHxSM2utOECZ2jXUxVIwv7eiLTlvDuI6TdNu/mYi+VyZpy5ktEvuzKtPJu+KlFNb rB9IoFPn3iiSKM5nd2OX81f1hwLlQ8PwwrQOWoaypAJluOqZycGO1v234IUs1MDGYElc ajpZ6xLiYZu7hbtaIf4t7Bzh1d8X1ONklu60X/92OJR8CSKXr6e3GVm4+ve/vBSWv4JK NGmaLb/TTYtpLF83pTBY5pAN+OHBr3bNMkll0SkXN8iJo7z+xHT9QdtdAYW4n/+ofqFy 0vqBFsOJhcstoRE/VoNRL9LOht5uV2RnEKK0unxpbpgGjU+N1qCNtJw/lbkaVwk5njjP FyNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jLUkwOEZZymFceGAr0IzTr+GxfxreGrJDbxkHS4zq74=; b=KgV6lM81CSYCU+bF0VipgzqnAWka7vWVsbMWEEvg3XGu0V8ZbeX5ehLFF70jDQij8R rNzMc6EQd5ZY17TEWaewRGXboYJ/2CIPFi+2BOKg4JCZJ+fkRIQYrdHyzVgf0bcT0uKQ OOGU8cUnd360RpLmAq+jTYzh8pbno7DxiGUt49wCxArD2QjPVsf4rutrdEKNxFY1W2H9 rHEbLRaV0+4oU4bVTivN3cHHqx9IFHMsfRhbx+nMpLHTl9RE8a1ffpjZvqn/j4C3tlJO qVvb7sA6TGlYAyPf2n6G3ZmMPGLfeAEKXgi27aWd4D/w1hn9Fjwv99M4eLPKN/WaaTqo yf9w== X-Gm-Message-State: AOAM530v12OOGNEiDrrZGkc0DKO9ZyCsp37RmL0BntxxMNP7beKFvLVx wQcZH7BM4XRqKwjY8o/EmNY= X-Received: by 2002:a9d:65d7:: with SMTP id z23mr2459397oth.131.1610569695835; Wed, 13 Jan 2021 12:28:15 -0800 (PST) Received: from localhost.localdomain (99-6-134-177.lightspeed.snmtca.sbcglobal.net. [99.6.134.177]) by smtp.gmail.com with ESMTPSA id c18sm619625oib.31.2021.01.13.12.28.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 12:28:15 -0800 (PST) Date: Wed, 13 Jan 2021 12:28:12 -0800 From: Enke Chen To: Eric Dumazet Cc: Yuchung Cheng , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , netdev , LKML , Neal Cardwell , enkechen2020@gmail.com Subject: Re: [PATCH] tcp: keepalive fixes Message-ID: <20210113202812.GA2746@localhost.localdomain> References: <20210112192544.GA12209@localhost.localdomain> <20210113200626.GB2274@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210113200626.GB2274@localhost.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 13, 2021 at 12:06:27PM -0800, Enke Chen wrote: > Hi, Eric: > > Just to clarify: the issues for tcp keepalive and TCP_USER_TIMEOUT are > separate isues, and the fixes would not conflict afaik. > > Thanks. -- Enke I have posted patches for both issues, and there is no conflict between the patches. Thanks. -- Enke > > On Tue, Jan 12, 2021 at 11:52:43PM +0100, Eric Dumazet wrote: > > On Tue, Jan 12, 2021 at 11:48 PM Yuchung Cheng wrote: > > > > > > On Tue, Jan 12, 2021 at 2:31 PM Enke Chen wrote: > > > > > > > > From: Enke Chen > > > > > > > > In this patch two issues with TCP keepalives are fixed: > > > > > > > > 1) TCP keepalive does not timeout when there are data waiting to be > > > > delivered and then the connection got broken. The TCP keepalive > > > > timeout is not evaluated in that condition. > > > hi enke > > > Do you have an example to demonstrate this issue -- in theory when > > > there is data inflight, an RTO timer should be pending (which > > > considers user-timeout setting). based on the user-timeout description > > > (man tcp), the user timeout should abort the socket per the specified > > > time after data commences. some data would help to understand the > > > issue. > > > > > > > +1 > > > > A packetdrill test would be ideal. > > > > Also, given that there is this ongoing issue with TCP_USER_TIMEOUT, > > lets not mix things > > or risk added work for backports to stable versions.