mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
tcp_out: Remove misleading comment in tcp_pbuf_prealloc()
This comment is incorrect since commit 7d0dab9d7d0c "partly fixed bug #25882: TCP hangs on MSS > pcb->snd_wnd (by not creating segments bigger than half the window)". Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
0a343948d9
commit
c9cfbe27c1
@ -242,7 +242,6 @@ tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length,
|
|||||||
LWIP_UNUSED_ARG(pcb);
|
LWIP_UNUSED_ARG(pcb);
|
||||||
LWIP_UNUSED_ARG(apiflags);
|
LWIP_UNUSED_ARG(apiflags);
|
||||||
LWIP_UNUSED_ARG(first_seg);
|
LWIP_UNUSED_ARG(first_seg);
|
||||||
/* always create MSS-sized pbufs */
|
|
||||||
alloc = max_length;
|
alloc = max_length;
|
||||||
#else /* LWIP_NETIF_TX_SINGLE_PBUF */
|
#else /* LWIP_NETIF_TX_SINGLE_PBUF */
|
||||||
if (length < max_length) {
|
if (length < max_length) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user