From c9cfbe27c13a6dcf696e8281763d1fc21648c7cf Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 9 Oct 2016 15:48:07 +0800 Subject: [PATCH] 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 --- src/core/tcp_out.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index 5a9c0319..a64e420d 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -242,7 +242,6 @@ tcp_pbuf_prealloc(pbuf_layer layer, u16_t length, u16_t max_length, LWIP_UNUSED_ARG(pcb); LWIP_UNUSED_ARG(apiflags); LWIP_UNUSED_ARG(first_seg); - /* always create MSS-sized pbufs */ alloc = max_length; #else /* LWIP_NETIF_TX_SINGLE_PBUF */ if (length < max_length) {