This is necessary to trigger the triplicate ACK detection on the sender.
-CFLAGS ?= -O2 -Wall -g
+CFLAGS ?= -Og -Wall -g
CFLAGS += -std=c99 -DUTCP_DEBUG
BIN = selftest test
//Reset the congestion window so we wait for ACKs.
c->snd.nxt = c->snd.una;
c->snd.cwnd = utcp->mtu;
+ start_retransmit_timer(c);
}
}
}
// - or we got an ack, so we should maybe send a bit more data
// -> sendatleastone = false
- ack(c, prevrcvnxt != c->rcv.nxt);
+ ack(c, len || prevrcvnxt != c->rcv.nxt);
return 0;
reset: