From owner-freebsd-questions@FreeBSD.ORG Sat Mar 7 16:58:50 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B12A3449 for ; Sat, 7 Mar 2015 16:58:50 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (xmpp.infracaninophile.co.uk [81.2.117.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "ca.infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CC6D8FB for ; Sat, 7 Mar 2015 16:58:49 +0000 (UTC) Received: from zero-gravitas.local (worm.infracaninophle.co.uk [81.2.117.101] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t27GWOQe075382 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 7 Mar 2015 16:32:25 GMT (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t27GWOQe075382 Authentication-Results: smtp.infracaninophile.co.uk/t27GWOQe075382; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host worm.infracaninophle.co.uk [81.2.117.101] (may be forged) claimed to be zero-gravitas.local Message-ID: <54FB2819.6060809@FreeBSD.org> Date: Sat, 07 Mar 2015 16:32:25 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: TCP aborted from state FIN_WAIT1 after empty 60 secs References: <20150307154902.GA3060@nybek.com> In-Reply-To: <20150307154902.GA3060@nybek.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2015 16:58:50 -0000 On 2015/03/07 15:49, Rory Byrne wrote: > I've been doing some cross-platform testing and I noticed some unusual behaviour > in the way FreeBSD handles TCP connections. Consider the following scenario: > > 1. A server writes a 20K payload to the socket send buffer and calls close() > or shutdown(). > > 2. The client, who has a small socket receive buffer of 8K, sits idle rather > than trying to read the payload off the stream. > Hi, Rory, If you re-post your question on freebsd-net@... you should get a response from someone with expertise in this area. Cheers, Matthew