tcp: reset cwnd to 1 after, and not before, the notification to a CA

This commit is contained in:
Vivek Jain
2018-05-04 11:17:31 +02:00
committed by Tom Henderson
parent 5fb0c87688
commit e82c68a1ae

View File

@@ -3532,11 +3532,11 @@ TcpSocketBase::ReTxTimeout ()
}
// Cwnd set to 1 MSS
m_tcb->m_cWnd = m_tcb->m_segmentSize;
m_tcb->m_cWndInfl = m_tcb->m_cWnd;
m_congestionControl->CwndEvent (m_tcb, TcpSocketState::CA_EVENT_LOSS);
m_congestionControl->CongestionStateSet (m_tcb, TcpSocketState::CA_LOSS);
m_tcb->m_congState = TcpSocketState::CA_LOSS;
m_tcb->m_cWnd = m_tcb->m_segmentSize;
m_tcb->m_cWndInfl = m_tcb->m_cWnd;
m_pacingTimer.Cancel ();