mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-04 04:25:41 +08:00
fix(lwip): Fix contains more than one tcp pbuf single tx packet
Fix TX exist more pbufs after enable LWIP_NETIF_TX_SINGLE_PBUF. internal: 3d5f33f0
This commit is contained in:
2
third_party/lwip/core/tcp_out.c
vendored
2
third_party/lwip/core/tcp_out.c
vendored
@ -464,6 +464,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
|
||||
LWIP_ASSERT("inconsistend oversize vs. len", (oversize == 0) || (pos == len));
|
||||
#endif /* TCP_OVERSIZE */
|
||||
|
||||
#if !LWIP_NETIF_TX_SINGLE_PBUF
|
||||
/*
|
||||
* Phase 2: Chain a new pbuf to the end of pcb->unsent.
|
||||
*
|
||||
@ -513,6 +514,7 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
|
||||
pos += seglen;
|
||||
queuelen += pbuf_clen(concat_p);
|
||||
}
|
||||
#endif /* !LWIP_NETIF_TX_SINGLE_PBUF */
|
||||
} else {
|
||||
#if TCP_OVERSIZE
|
||||
LWIP_ASSERT("unsent_oversize mismatch (pcb->unsent is NULL)",
|
||||
|
Reference in New Issue
Block a user