Subject: Re: tcp_output fix for acking with a full send buffer
To: Darrin B.Jewell <dbj@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-net
Date: 09/14/2006 11:28:29
On Sep 14, 2006, at 10:34 AM, Darrin B.Jewell wrote:

>
> A while ago, I encountered a bug where I could get tcp to slow down
> because it couldn't get acks on the wire.  I tracked this down to
> mycroft's original fix to avoid sending more than half a buffer full.
>
> The fix is to never send more than (hiwat - lowat + 1)/2 instead of
> mycroft's fix of just hiwat/2.  I've had a patch in my tree for some
> time, but haven't had the time to write up a simplified test case
> demonstrating the problem.
>
> Does the following patch look correct?

Please get this pulled up to netbsd-4, as well.  (and netbsd-3, if the  
patch is applicable there)

>
> Thanks,
> Darrin
>
> <tcpoutput.diff>

-- thorpej