Bug 829 - TCP unbound memory problem (pending data)
This commit is contained in:
1 parent
d68f49a0f2
commit
0ee8bf099f
3 files changed
+47
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user