move m_wouldBlock assignment to fix bug 226

This commit is contained in:
Unknown
2008-06-18 21:29:21 -07:00
parent b357866655
commit c7e37d1a18

View File

@@ -798,8 +798,8 @@ bool TcpSocketImpl::ProcessPacketAction (Actions_t a, Ptr<Packet> p,
// Data freed from the send buffer; notify any blocked sender
if (m_wouldBlock)
{
NotifySend (GetTxAvailable ());
m_wouldBlock = false;
NotifySend (GetTxAvailable ());
}
}
SendPendingData ();
@@ -1172,8 +1172,8 @@ void TcpSocketImpl::CommonNewAck (SequenceNumber ack, bool skipTimer)
{
// m_highestRxAck advancing means some data was acked, and the size
// of free space in the buffer has increased
NotifySend (GetTxAvailable ());
m_wouldBlock = false;
NotifySend (GetTxAvailable ());
}
if (ack > m_nextTxSequence)
{