mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-13 11:47:00 +08:00
Fixed bug #20287: Fixed nagle algorithm (sending was done too early if a segment contained chained pbufs)
This commit is contained in:
@@ -119,7 +119,7 @@ void tcp_rexmit_rto (struct tcp_pcb *pcb);
|
||||
*/
|
||||
#define tcp_output_nagle(tpcb) ((((tpcb)->unacked == NULL) || \
|
||||
((tpcb)->flags & TF_NODELAY) || \
|
||||
((tpcb)->snd_queuelen > 1)) ? \
|
||||
(((tpcb)->unsent != NULL) && ((tpcb)->unsent->next != NULL))) ? \
|
||||
tcp_output(tpcb) : ERR_OK)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user