Subject: Re: tcp_output fix for acking with a full send buffer
To: Darrin B.Jewell <dbj@netbsd.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-net
Date: 09/14/2006 10:52:13
--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 14, 2006 at 10:34:42AM -0700, Darrin B.Jewell wrote:
>=20
> 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.
>=20
> 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.
>=20
> Does the following patch look correct?

Looks good!

Take care,

Bill

--uAKRQypu60I7Lcqm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFFCZbNWz+3JHUci9cRAlV6AJ4p5Z5rUJAQCVu2QbXyxb16sVeblwCgj8k7
i0MbMROH/ZNEz+mlMRJ0mwM=
=uwsA
-----END PGP SIGNATURE-----

--uAKRQypu60I7Lcqm--