From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752430AbcGASfF (ORCPT ); Fri, 1 Jul 2016 14:35:05 -0400 Received: from prod-mail-xrelay08.akamai.com ([96.6.114.112]:23280 "EHLO prod-mail-xrelay08.akamai.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207AbcGASfC (ORCPT ); Fri, 1 Jul 2016 14:35:02 -0400 X-Greylist: delayed 484 seconds by postgrey-1.27 at vger.kernel.org; Fri, 01 Jul 2016 14:35:02 EDT Subject: Re: strange Mac OSX RST behavior To: One Thousand Gnomes References: <1467385815-6357-1-git-send-email-jbaron@akamai.com> <5776A3A4.8000503@hpe.com> <5776A607.70800@akamai.com> <20160701191609.1fc1c045@lxorguk.ukuu.org.uk> CC: Rick Jones , , , , From: Jason Baron X-Enigmail-Draft-Status: N1110 Message-ID: <5776B5E9.4080100@akamai.com> Date: Fri, 1 Jul 2016 14:26:49 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160701191609.1fc1c045@lxorguk.ukuu.org.uk> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/01/2016 02:16 PM, One Thousand Gnomes wrote: >> yes, we do in fact see a POLLRDHUP from the FIN in this case and >> read of zero, but we still have more data to write to the socket, and >> b/c the RST is dropped here, the socket stays in TIME_WAIT until >> things eventually time out... > > After the FIN when you send/retransmit your next segment do you then get > a valid RST back from the Mac end? > > Alan > No, we only get the single RST after the FIN from the Mac side which is dropped. I would have expected the RST from the Mac after the retransmits, but we don't see any further transmits from the Mac. And the linux socket stays in CLOSE-WAIT (i mistakingly said TIME_WAIT above). For reference, I put the packet exchange in my initial mail. Thanks, -Jason