src/internet-node/tcp-socket.cc
changeset 2989 b7eb3929096c
parent 2987 4fe951be604c
parent 2972 d76553495b91
child 2999 0b10920623bf
equal deleted inserted replaced
2988:8774a8c9526f 2989:b7eb3929096c
  1159   m_ssThresh = std::max (m_ssThresh, 2 * m_segmentSize);
  1159   m_ssThresh = std::max (m_ssThresh, 2 * m_segmentSize);
  1160   // Set cWnd to segSize on timeout,  per rfc2581
  1160   // Set cWnd to segSize on timeout,  per rfc2581
  1161   // Collapse congestion window (re-enter slowstart)
  1161   // Collapse congestion window (re-enter slowstart)
  1162   m_cWnd = m_segmentSize;           
  1162   m_cWnd = m_segmentSize;           
  1163   m_nextTxSequence = m_highestRxAck; // Start from highest Ack
  1163   m_nextTxSequence = m_highestRxAck; // Start from highest Ack
  1164   m_rtt->IncreaseMultiplier (); // Double timeout value for next retx timer
  1164   m_rtt->IncreaseMultiplier (); // DoubleValue timeout value for next retx timer
  1165   Retransmit ();             // Retransmit the packet
  1165   Retransmit ();             // Retransmit the packet
  1166 }
  1166 }
  1167 
  1167 
  1168 void TcpSocket::LastAckTimeout ()
  1168 void TcpSocket::LastAckTimeout ()
  1169 {
  1169 {