tcp: we should send an ACK for at least each two received segments. Jerome helped debug this one.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21255 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-05-27 22:30:18 +00:00
parent 6015e60ecc
commit 1002cfa0bb
@@ -766,12 +766,6 @@ TCPEndpoint::DeleteSocket()
status_t
TCPEndpoint::DelayedAcknowledge()
{
// if the timer is already running, and there is still more than
// half of the receive window free, just wait for the timer to expire
if (gStackModule->is_timer_active(&fDelayedAcknowledgeTimer)
&& (fReceiveMaxAdvertised - fReceiveNext) > (socket->receive.buffer_size >> 1))
return B_OK;
if (gStackModule->cancel_timer(&fDelayedAcknowledgeTimer)) {
// timer was active, send an ACK now (with the exception above,
// we send every other ACK)