From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753773AbcGVVIb (ORCPT ); Fri, 22 Jul 2016 17:08:31 -0400 Received: from prod-mail-xrelay05.akamai.com ([23.79.238.179]:57167 "EHLO prod-mail-xrelay05.akamai.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbcGVVIa (ORCPT ); Fri, 22 Jul 2016 17:08:30 -0400 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 Message-ID: Date: Fri, 22 Jul 2016 17:08:27 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160701191609.1fc1c045@lxorguk.ukuu.org.uk> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, After looking at this further we found that there is actually a rate limit on 'rst' packets sent by OSX on a closed socket. Its set to 250 per second and controlled via: net.inet.icmp.icmplim. Increasing that limit resolves the issue, but the default is apparently 250. Thanks, -Jason 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