On Wed, Sep 16, 2009 at 11:40 AM, Kieran Mansley
<address@hidden> wrote:
On Wed, 2009-09-16 at 11:19 +0200, Oscar F wrote:
> Then i don´t need flush, because lwip send the data without wait for a
> minimun size of internal buffer no?
lwIP will only wait if you have the Nagle algorithm enabled (controlled
by the NODELAY socket option) and there is less than 1 segment of data
to be sent and there is some data unacked by the other end. In all
other cases it should send as soon as it can, as long as there is
sufficient TCP window space. The delay introduced by the Nagle
algorithm will be rare (unless you send very small amounts of data) and
small.