bug 1734: TcpSocketBase produces spurious delayed ACKs (fix due to Lawrence Stewart)

This commit is contained in:
Tommaso Pecorella
2015-02-01 07:13:56 -08:00
parent 20fa8f04a3
commit bce2be09a8

View File

@@ -1929,6 +1929,12 @@ TcpSocketBase::SendDataPacket (SequenceNumber32 seq, uint32_t maxSize, bool with
uint8_t flags = withAck ? TcpHeader::ACK : 0;
uint32_t remainingData = m_txBuffer->SizeFromSequence (seq + SequenceNumber32 (sz));
if (withAck)
{
m_delAckEvent.Cancel ();
m_delAckCount = 0;
}
/*
* Add tags for each socket option.
* Note that currently the socket adds both IPv4 tag and IPv6 tag