src/internet-node/tcp-socket.cc
changeset 2965 4b28e9740e3b
parent 2880 ce64dffad49f
child 2972 d76553495b91
equal deleted inserted replaced
2964:4e8cb1577144 2965:4b28e9740e3b
  1163   m_ssThresh = std::max (m_ssThresh, 2 * m_segmentSize);
  1163   m_ssThresh = std::max (m_ssThresh, 2 * m_segmentSize);
  1164   // Set cWnd to segSize on timeout,  per rfc2581
  1164   // Set cWnd to segSize on timeout,  per rfc2581
  1165   // Collapse congestion window (re-enter slowstart)
  1165   // Collapse congestion window (re-enter slowstart)
  1166   m_cWnd = m_segmentSize;           
  1166   m_cWnd = m_segmentSize;           
  1167   m_nextTxSequence = m_highestRxAck; // Start from highest Ack
  1167   m_nextTxSequence = m_highestRxAck; // Start from highest Ack
  1168   m_rtt->IncreaseMultiplier (); // Double timeout value for next retx timer
  1168   m_rtt->IncreaseMultiplier (); // DoubleValue timeout value for next retx timer
  1169   Retransmit ();             // Retransmit the packet
  1169   Retransmit ();             // Retransmit the packet
  1170 }
  1170 }
  1171 
  1171 
  1172 void TcpSocket::LastAckTimeout ()
  1172 void TcpSocket::LastAckTimeout ()
  1173 {
  1173 {