From: Eric Dumazet Subject: Re: [PATCH net] tcp: do not restart timewait timer on rst reception Date: Thu, 30 Aug 2018 08:07:26 -0700 Message-ID: <3281b8a6-d862-d634-d65c-92c889fc4b28@gmail.com> References: <20180830122429.3546-1-fw@strlen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: edumazet@google.com To: Florian Westphal , netdev@vger.kernel.org Return-path: Received: from mail-wm0-f68.google.com ([74.125.82.68]:54143 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728787AbeH3TKG (ORCPT ); Thu, 30 Aug 2018 15:10:06 -0400 Received: by mail-wm0-f68.google.com with SMTP id b19-v6so2349545wme.3 for ; Thu, 30 Aug 2018 08:07:30 -0700 (PDT) In-Reply-To: <20180830122429.3546-1-fw@strlen.de> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 08/30/2018 05:24 AM, Florian Westphal wrote: > RFC 1337 says: > ''Ignore RST segments in TIME-WAIT state. > If the 2 minute MSL is enforced, this fix avoids all three hazards.'' > > So with net.ipv4.tcp_rfc1337=1, expected behaviour is to have TIME-WAIT sk > expire rather than removing it instantly when a reset is received. > > However, Linux will also re-start the TIME-WAIT timer. > > This causes connect to fail when tying to re-use ports or very long > delays (until syn retry interval exceeds MSL). > > Reported-by: Michal Tesar > Signed-off-by: Florian Westphal > --- SGTM, thanks. Signed-off-by: Eric Dumazet