Bug 829 - TCP unbound memory problem (pending data)

This commit is contained in:
Josh Pelkey committed 2010-03-27 19:09:18 -04:00
1 parent d68f49a0f2
commit 0ee8bf099f
3 files changed
+47

No files matched your search

+5
View File
@@ -1511,6 +1511,11 @@ void TcpSocketImpl::CommonNewAck (SequenceNumber ack, bool skipTimer)
Simulator::GetDelayLeft (m_retxEvent)).GetSeconds());
m_retxEvent.Cancel ();
}
else if (m_pendingData->SizeFromSeq (m_firstPendingSequence, m_highestRxAck) > 0)
{
// Remove from front, if possible
m_firstPendingSequence += m_pendingData->RemoveToSeq (m_firstPendingSequence, m_highestRxAck);
}
}
// Try to send more data
SendPendingData (m_connected);