Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp640487pxb; Wed, 13 Jan 2021 12:10:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4S/8djr43jJDZW2vkH7/W+s+bVCv5OJkzb/ewHpfx6cA2KxCfNQPC8G5CtpD/kIBSITXG X-Received: by 2002:a05:6402:2359:: with SMTP id r25mr2197014eda.171.1610568615469; Wed, 13 Jan 2021 12:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610568615; cv=none; d=google.com; s=arc-20160816; b=Yu4g9pm5GlpUcPyLhwoWVrWu3eUZ+MPO0qA9E0S8OiW/8Sq1H7Epk4+nL/Bs7W7fmg 7/kEpB+eHofLXu3dHDRO2E73lnyGoj9QT9tuYiDFIsw9dqYRpUp2+KAX41ibXhs4aq0s uPrnVQHPCJVa7xQsEmHyC/yOan9oHmo5HK9fUB2dtg1XfXE/YirnbWmgFT32crA111OI r7EU8TSVXC2sy6BnG/gkUp4HwLS5ZUIRIBCoA5ZsAI2ZCN5Tb/srPiAlzF9AwNdcBwcb SG+3vYv6Spi8qQI5t4CwD8IT9/jnekzl3jAN/9lLSx//jGX+XRsh2RmKzAXuB0TMPadM k1MA== 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=lv1Kbmm4YHPjDW6jxGU7xhxNaDP025bj9EsoV9E8pOE=; b=gfLA+eTqApmGejK9j710e6BihKHl0Gd36XHbAP1PXjUtIeLHg/j1HzaNDzCrTj1zHt j2TG8GCY/4LHQKicpnn41moxhJfbbYtDmL/mmEE1PkhJXD2fpoJHl/BvKN6ZvflDR1Re dygW4wBoDaN6QDXpSsqHXFneiUQd3M2hyzzWhGOHMK4QZnf0wRyeTJKQGylrVTEcqhAu Oro0lT7UvJov3LnpQFUXQCNsiErE70GQSWGSeU6j1EhKyC8gXgf0RjPdgtY4sHnAY2RX fvkqBWBeDDYFQqlWJAEy1vG+E1ODmlGQD8VwqrW2ru2TmHAgKbmtYhleFXHTIR1YwtXD h7GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cRPm9pZP; 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 h11si1581621edw.275.2021.01.13.12.09.51; Wed, 13 Jan 2021 12:10:15 -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=cRPm9pZP; 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 S1728847AbhAMUHL (ORCPT + 99 others); Wed, 13 Jan 2021 15:07:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728804AbhAMUHK (ORCPT ); Wed, 13 Jan 2021 15:07:10 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DA7CC061795; Wed, 13 Jan 2021 12:06:30 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id s75so3494664oih.1; Wed, 13 Jan 2021 12:06:30 -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=lv1Kbmm4YHPjDW6jxGU7xhxNaDP025bj9EsoV9E8pOE=; b=cRPm9pZPSknFMMW6crH2FgRrxmhcQ+9YGAlUaON/y/ybThM0pf/7uptAjn2AMJT8fg WwPzkkD+u39tegiwh6mZ/7DlW7JRJ17EG6DMTTcBLCxIpsx4yd0DuEJBa+BI8GVR0iYE ATNGoQzT0/d5/Fe+SneQV2JnBG3GLHa0lBIQHNsOUXYR8alYsQmrU/TKpwelf8XAl0P5 eZ6LiFxDatmCPUK+1yQx9wmra+nhMDLmNImNCASOeuxppbXiCpdFqVrJEnzlC1bg3kw8 Prb9U0fyqhZVzuuek2g8XAKWO4j50FAbQnhTDpRa04z3m4o42BAy6msoM9nRUhKUSBGX iPzQ== 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=lv1Kbmm4YHPjDW6jxGU7xhxNaDP025bj9EsoV9E8pOE=; b=A6+pJNP4GiUZ4zXQY/ilQOlKXMTuOCRFOAA2OBDCAr2RH+JgXJcwVivftRVcz0iEy0 QPcwhaNKqmV1HANKt8WxmVpsf6Ye8LyS7SJW5nnsMj8TIcGOrS59tXA+6rcY2gFIl4m9 OIrMsMyaq1sjrYWwbNjZBCCRMlScg3ZRjwM/es6i2OQoVF5mugJikYWVc59QJLapBf4G hawTLz4EFtiiRJj/9HvZF93cXIb04gObtznJkRHjeRn6P4PoUQj7reqR7T9WLzAShOaC 91B5o93wyGHcGNmlV0813nAlaUFIdVAcrx11mVcku4YeoHoSRpLHbzpVNzHp+nUBEEBG HxDg== X-Gm-Message-State: AOAM5321dFbN/8AQPXA+bFojq5B2xdpGJ0buKRFXPFZ+59YPikUehAVl 7ZrcetnaYskK1JQKqAaR+6tIQvj6ANI= X-Received: by 2002:aca:b06:: with SMTP id 6mr610373oil.74.1610568389622; Wed, 13 Jan 2021 12:06:29 -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 m7sm621454oou.11.2021.01.13.12.06.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 12:06:29 -0800 (PST) Date: Wed, 13 Jan 2021 12:06:27 -0800 From: Enke Chen To: Eric Dumazet Cc: Yuchung Cheng , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , netdev , LKML , Neal Cardwell Subject: Re: [PATCH] tcp: keepalive fixes Message-ID: <20210113200626.GB2274@localhost.localdomain> References: <20210112192544.GA12209@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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.