From c7e37d1a18ab287ee14d8da8658a3167aa856a4a Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 18 Jun 2008 21:29:21 -0700 Subject: [PATCH] move m_wouldBlock assignment to fix bug 226 --- src/internet-stack/tcp-socket-impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internet-stack/tcp-socket-impl.cc b/src/internet-stack/tcp-socket-impl.cc index 0d97c90ee..cd66492ad 100644 --- a/src/internet-stack/tcp-socket-impl.cc +++ b/src/internet-stack/tcp-socket-impl.cc @@ -798,8 +798,8 @@ bool TcpSocketImpl::ProcessPacketAction (Actions_t a, Ptr 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) {