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:
@@ -766,12 +766,6 @@ TCPEndpoint::DeleteSocket()
|
|||||||
status_t
|
status_t
|
||||||
TCPEndpoint::DelayedAcknowledge()
|
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)) {
|
if (gStackModule->cancel_timer(&fDelayedAcknowledgeTimer)) {
|
||||||
// timer was active, send an ACK now (with the exception above,
|
// timer was active, send an ACK now (with the exception above,
|
||||||
// we send every other ACK)
|
// we send every other ACK)
|
||||||
|
|||||||
Reference in New Issue
Block a user