Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp39810pxb; Tue, 12 Jan 2021 19:22:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4z7Dhs7rqwJ3rDf4XuTlAXZIRfJTIVxCxcGRy5hQMGFs/toYtAdSAwdNG8YolprUViY5F X-Received: by 2002:a50:b282:: with SMTP id p2mr146974edd.210.1610508165281; Tue, 12 Jan 2021 19:22:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610508165; cv=none; d=google.com; s=arc-20160816; b=I4nu/Ah6qigDyaRKcOAXC9DKPqp+vd5hdabunHsTYPPUVgRDnxu0wYUOtP7ceINOyV OqovRV/4ziEt6XxdBkmCJo23TPJs+Lz1xHFfuWgLihhsU/bA/hh0iAjn9vOSYYBiAA6+ XSWcPPE7aq9JThE+CaSqQIorwNzRPYAWclAIoD1Op8raMUQBl8e7ON17yN4+Y58uvTyl bXexoigTq4YbHAwxRhslBpt8zylDPgpKNaq87W90TPX0NLFmLWxQhO9uxzCf/6NL+fpJ NFxXosjTliyViPkYXSIU2z1op9MzC1YuSuzHEyWhs8VRomD5oosqZLi6Uv/9lDXnORQ+ Bdpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fLxEHdmjmlZykfFx5ew3fFtTUyVnStFftN9I76p99UQ=; b=pSLRea3FigGKT5b5OqApESbulqKD9ZuoyCsDdzoTyTQrNgRZaJAWR2UVHBhfCvZ9dE EH7G6RbGEwTx3VUBO6OxB+tdnt4zo21TGOfR4+O6E+upxgcChC40rYZaXgfPZV3SBiZd Yu6Ftr+cPM4no1R0ITanGwqoF4e+tXryAbDQjqnQTYdGBp9KAvpD9Qt0Zvh3tLlk78wI PsQvUQro0I0A9ONVFMQ90DGtvLVsm20pGqBs9Q88bXD/VGp0KSGht211Vw2x3HbvDeWn Xl7vBduMIsbc4KcseCVVlFVuHntaLa7CRUjNUyCP0Q+2/+XCLCH69GwuuOGwDIJPIsTr ZUrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qikE3aBL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si319410ejc.705.2021.01.12.19.22.21; Tue, 12 Jan 2021 19:22:45 -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=@google.com header.s=20161025 header.b=qikE3aBL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732680AbhALWxg (ORCPT + 99 others); Tue, 12 Jan 2021 17:53:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731781AbhALWxg (ORCPT ); Tue, 12 Jan 2021 17:53:36 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD03C061786 for ; Tue, 12 Jan 2021 14:52:55 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id z5so134698iob.11 for ; Tue, 12 Jan 2021 14:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fLxEHdmjmlZykfFx5ew3fFtTUyVnStFftN9I76p99UQ=; b=qikE3aBL2oQopixdpOcKbZPz1BM+i5uJ4ibkCQyu6n74dUKNhiMBhC8nHxo/W4mabh efbn32R3WjTdznhrnZqt1E574wCHvn/YJuIdsMDnpHedhWT/w3+IqrxW82+pSrW0Ij/G OEzbYW3tr9QgKhpXavWlWjDqgFWaP38yLTdJk1F0iBtEAoSD0FFSk9J7feP6DhjRAegK eHHtYnLMHvfJEkZBthN6S4Jsu7ZbrVqeg+dDe4jqjMvVoLnaBcYKyww9RqOGp0Z4JbRC t0ZYZDUTDyRutBF4WQ/T+iTnj2fiH6mTqfROrKTa/WQ0e8GYK6c9+J0E+gQ9HWzgHGIp CGTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fLxEHdmjmlZykfFx5ew3fFtTUyVnStFftN9I76p99UQ=; b=qayakpY2QzA/XSVEx/D9bFIjAQFGEsuCkB7fjHwWNlAsYf6TfsmEPYS1Z4rRWzBn0X NPACK5d2qylbj6dlxR+mTcIw71pEOfxBfbyj1DjcqJ8lZF6W3Ywoluusz81CvoP8y6B7 T4b9QTZ8BcVyVayUGeECWdsgeo6zV/Rn0X8hTV1EUia0kP/nHuq/cKjWG0d+YkCZXqY2 zZcvZ8yE9GK5MLB7me+GaySDGjRwZ/LV2heT2V4oiS+eWy/LRDkvh4yrFbfnALQJRIsI a05pfwXn3c21x4gld9gZAJEVZtb6xoQeDMzbxqw7JfNzE+G/2HrA/rb4KQ8u4W7aRC6s yO1w== X-Gm-Message-State: AOAM532pgrfgqGmes6cDzTCBXlC7ZGbfTjewey/s2/icseonlnHQQ2+N eH/LG3dOHvLHDAxqcCiNvwCY56ssqFeGsNYqWRq0Sw== X-Received: by 2002:a92:ce09:: with SMTP id b9mr1375100ilo.69.1610491974876; Tue, 12 Jan 2021 14:52:54 -0800 (PST) MIME-Version: 1.0 References: <20210112192544.GA12209@localhost.localdomain> In-Reply-To: From: Eric Dumazet Date: Tue, 12 Jan 2021 23:52:43 +0100 Message-ID: Subject: Re: [PATCH] tcp: keepalive fixes To: Yuchung Cheng Cc: Enke Chen , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , netdev , LKML , Neal Cardwell Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.