mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-02 12:52:10 +00:00
Fixed bug #27783: Silly window avoidance for small window sizes
This commit is contained in:
parent
18ab274af3
commit
81f9442ac7
@ -43,6 +43,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2009-10-23: Simon Goldschmidt (David Empson)
|
||||||
|
* tcp.c: Fixed bug #27783: Silly window avoidance for small window sizes
|
||||||
|
|
||||||
2009-10-22: Simon Goldschmidt
|
2009-10-22: Simon Goldschmidt
|
||||||
* tcp_in.c: Fixed bug #26251: RST process in TIME_WAIT TCP state
|
* tcp_in.c: Fixed bug #26251: RST process in TIME_WAIT TCP state
|
||||||
|
|
||||||
|
@ -408,7 +408,7 @@ u32_t tcp_update_rcv_ann_wnd(struct tcp_pcb *pcb)
|
|||||||
{
|
{
|
||||||
u32_t new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd;
|
u32_t new_right_edge = pcb->rcv_nxt + pcb->rcv_wnd;
|
||||||
|
|
||||||
if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + pcb->mss)) {
|
if (TCP_SEQ_GEQ(new_right_edge, pcb->rcv_ann_right_edge + LWIP_MIN((TCP_WND / 2), pcb->mss))) {
|
||||||
/* we can advertise more window */
|
/* we can advertise more window */
|
||||||
pcb->rcv_ann_wnd = pcb->rcv_wnd;
|
pcb->rcv_ann_wnd = pcb->rcv_wnd;
|
||||||
return new_right_edge - pcb->rcv_ann_right_edge;
|
return new_right_edge - pcb->rcv_ann_right_edge;
|
||||||
|
Loading…
Reference in New Issue
Block a user