Nagle's algorithm (source code)

= Nagle's algorithm
{c}
{wiki}

<Nagle's algorithm> coalesces small writes while data are unacknowledged, permitting another send when a full <TCP segment> can be formed or the outstanding data have been acknowledged. It reduces tiny transmissions but can add delay.