From nobody Tue Sep 07 08:47:01 2021 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 77ECB17AFBD6; Tue, 7 Sep 2021 08:47:11 +0000 (UTC) (envelope-from michael.tuexen@lurchi.franken.de) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H3f5q2Vwsz4cg7; Tue, 7 Sep 2021 08:47:11 +0000 (UTC) (envelope-from michael.tuexen@lurchi.franken.de) Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1140:c3d:89ea:c2fd:ec77:7430]) (Authenticated sender: lurchi) by mail-n.franken.de (Postfix) with ESMTPSA id 95145721BE019; Tue, 7 Sep 2021 10:47:01 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: TCP connection ignore RST From: Michael Tuexen In-Reply-To: <20210907051034.5669a02d@rimwks.local> Date: Tue, 7 Sep 2021 10:47:01 +0200 Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <1804249E-FD55-4A4A-9895-BCEDF2323137@lurchi.franken.de> References: <20210904023730.5eddd6fd@rimwks.local> <927CA9E9-AB74-443D-83A7-931325DB7686@lurchi.franken.de> <20210907051034.5669a02d@rimwks.local> To: Rozhuk Ivan X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 4H3f5q2Vwsz4cg7 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 7. Sep 2021, at 04:10, Rozhuk Ivan wrote: > > On Sat, 4 Sep 2021 13:19:52 +0200 > Michael Tuexen wrote: > >>> On 4. Sep 2021, at 01:37, Rozhuk Ivan wrote: >>> >>> Hi! >>> >>> >>> I have strange case: FreeBSD 12.2 ignore TCP RST from windows host >>> and continue retransmitting packets. sockstat show that socket >>> connected even after many tcp rst packets received. >>> >>> Any ideas how to fix it? >> Where is the trace taken? On the Windows side or on the FreeBSD side >> or somewhere else? Could you provide the .pcap file? >> > > From FreeBSD side. > > https://reviews.freebsd.org/D28142 e82353f84c58da9a5c38bd471a09936c16a5b6ea > https://reviews.freebsd.org/D28143 d05d908d6d3c85479c84c707f931148439ae826b > sysctl net.inet.tcp.tolerate_missing_ts=1 > this fixes issue for me. That was my first guess, but after double checking, this code is not present in FreeBSD 12.2. However, it is present in stable/12. So could it be that you are using stable/12 and not 12.2? Best regards Michael