mirror of
https://github.com/esp8266/Arduino.git
synced 2025-05-15 17:35:24 +03:00
fix: tcp_output() should always be called after tcp_write(), does not break nagle (+ doc) (#5172)
This commit is contained in:
parent
7c91eee26d
commit
775eb9b343
@ -508,10 +508,11 @@ protected:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (has_written && (_sync || tcp_nagle_disabled(_pcb)))
|
if (has_written)
|
||||||
{
|
{
|
||||||
// handle no-Nagle manually because of TCP_WRITE_FLAG_MORE
|
|
||||||
// lwIP's tcp_output doc: "Find out what we can send and send it"
|
// lwIP's tcp_output doc: "Find out what we can send and send it"
|
||||||
|
// *with respect to Nagle*
|
||||||
|
// more insights: https://lists.gnu.org/archive/html/lwip-users/2017-11/msg00134.html
|
||||||
tcp_output(_pcb);
|
tcp_output(_pcb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user