Browse Source

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
STABLE-2_1_x
kieranm 24 years ago
parent
commit
6972e81ac0
  1. 2
      src/core/tcp_in.c

2
src/core/tcp_in.c

@ -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) {

Loading…
Cancel
Save