mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 21:41:28 +00:00
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:
parent
ac46dbacfa
commit
6972e81ac0
@ -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…
Reference in New Issue
Block a user