According to RFC 2581, page 5:
"Furthermore, upon a timeout cwnd MUST be set to no more than the loss window, LW, which equals 1 full-sized segment (regardless of the value of IW)."
"retransmitData();" has no rexmit limitation (bytesToSend > snd_cwnd) so TCPReno could send more then one segment after RTO, therefore retransmitOneSegment() should be used instead of retransmitData().
According to RFC 2581, page 5:
"Furthermore, upon a timeout cwnd MUST be set to no more than the loss window, LW, which equals 1 full-sized segment (regardless of the value of IW)."
"retransmitData();" has no rexmit limitation (bytesToSend > snd_cwnd) so TCPReno could send more then one segment after RTO, therefore retransmitOneSegment() should be used instead of retransmitData().