mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-11 15:40:05 +00:00
Fixed bug #27329: dupacks by unidirectional data transmit
This commit is contained in:
parent
a9740c6a44
commit
d9a5094068
@ -43,6 +43,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2009-10-15: Simon Goldschmidt (Oleg Tyshev)
|
||||||
|
* tcp_in.c: Fixed bug #27329: dupacks by unidirectional data transmit
|
||||||
|
|
||||||
2009-10-15: Simon Goldschmidt
|
2009-10-15: Simon Goldschmidt
|
||||||
* api_msg.c: Fixed bug #27709: conn->err race condition on netconn_recv()
|
* api_msg.c: Fixed bug #27709: conn->err race condition on netconn_recv()
|
||||||
timeout
|
timeout
|
||||||
|
@ -766,8 +766,9 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
pcb->acked = 0;
|
pcb->acked = 0;
|
||||||
|
|
||||||
if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge){
|
if (pcb->snd_wl2 + pcb->snd_wnd == right_wnd_edge){
|
||||||
|
if (pcb->unacked != NULL) {
|
||||||
++pcb->dupacks;
|
++pcb->dupacks;
|
||||||
if (pcb->dupacks >= 3 && pcb->unacked != NULL) {
|
if (pcb->dupacks >= 3) {
|
||||||
if (!(pcb->flags & TF_INFR)) {
|
if (!(pcb->flags & TF_INFR)) {
|
||||||
/* This is fast retransmit. Retransmit the first unacked segment. */
|
/* This is fast retransmit. Retransmit the first unacked segment. */
|
||||||
LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupacks %"U16_F" (%"U32_F"), fast retransmit %"U32_F"\n",
|
LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupacks %"U16_F" (%"U32_F"), fast retransmit %"U32_F"\n",
|
||||||
@ -800,6 +801,9 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
pcb->dupacks = 0;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupack averted %"U32_F" %"U32_F"\n",
|
LWIP_DEBUGF(TCP_FR_DEBUG, ("tcp_receive: dupack averted %"U32_F" %"U32_F"\n",
|
||||||
pcb->snd_wl2 + pcb->snd_wnd, right_wnd_edge));
|
pcb->snd_wl2 + pcb->snd_wnd, right_wnd_edge));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user