1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

fix: tcp_output() should always be called after tcp_write(), does not break nagle (+ doc) (#5172)

This commit is contained in:
david gauchard
2018-09-26 23:56:01 +02:00
committed by GitHub
parent 7c91eee26d
commit 775eb9b343

View File

@ -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"
// *with respect to Nagle*
// more insights: https://lists.gnu.org/archive/html/lwip-users/2017-11/msg00134.html
tcp_output(_pcb);
}