don't send sync ACK when interval is == 1

This commit is contained in:
Stephen Birarda 2016-09-26 11:31:22 -07:00
parent 69ca0d2675
commit b232a44c8d
2 changed files with 6 additions and 4 deletions

View file

@ -223,9 +223,11 @@ void Connection::sync() {
// reset the number of light ACKs or non SYN ACKs during this sync interval
_lightACKsDuringSYN = 1;
_acksDuringSYN = 1;
// we send out a periodic ACK every rate control interval
sendACK();
if (_congestionControl->_ackInterval > 1) {
// we send out a periodic ACK every rate control interval
sendACK();
}
if (_lossList.getLength() > 0) {
// check if we need to re-transmit a loss list

View file

@ -19,7 +19,7 @@ void TCPRenoCC::init() {
_packetSendPeriod = 0.0;
_congestionWindowSize = 2.0;
setAckInterval(2);
setAckInterval(1);
setRTO(1000000);
}