Reset the retransmit counter when setting the timer on a failed
authorJeffrey Hsu <hsu@dragonflybsd.org>
Thu, 18 Sep 2003 18:32:55 +0000 (18:32 +0000)
committerJeffrey Hsu <hsu@dragonflybsd.org>
Thu, 18 Sep 2003 18:32:55 +0000 (18:32 +0000)
commitea8bd01ab2da40d51c15e6f2ee25d50004261067
tree0bde71db453d44a5b870e0aea3d4f2eeeec849d6
parentce90f7addda59eae88f35f90848420d1e1e398de
Reset the retransmit counter when setting the timer on a failed
ip_output().  This prevents ENOBUFS errors from later inadvertently
timing out a connection prematurely.

Switch over to the persist timer while we're at it.

Problem reported by: Jayanth Vijayaraghavan <jayanth@yahoo-inc.com>
Obtained from: BSD/OS
sys/netinet/tcp_output.c