Zero pcb->acked if ack does not acknowledge new data

- prevents the sent function being called multiple times when no new data has been acknowledged
This commit is contained in:
kieranm 2002-12-03 10:45:47 +00:00
parent ac46dbacfa
commit 6972e81ac0

View File

@ -628,6 +628,8 @@ tcp_receive(struct tcp_pcb *pcb)
if(pcb->lastack == ackno) {
pcb->acked = 0;
if(pcb->snd_wl1 + pcb->snd_wnd == right_wnd_edge){
++pcb->dupacks;
if(pcb->dupacks >= 3 && pcb->unacked != NULL) {