Nagle's Algorithm
-
RFC896: Congestion Control in IP/TCP Internetworks, John Nagle , 1984-01.
- Minshall's update, 1999.
-
The trouble with the Nagle algorithm by John Nagle, 2006.
-
Nginx Optimization: understanding sendfile, tcp_nodelay and tcp_nopush
-
In reply to above post, John Nagle on Nagle's algorithm https://news.ycombinator.com/item?id=9045125, 2015.
Sigh. If you're doing bulk file transfers, you never hit that problem. If you're sending enough data to fill up outgoing buffers, there's no delay. If you send all the data and close the TCP connection, there's no delay after the last packet. If you do send, reply, send, reply, there's no delay. If you do bulk sends, there's no delay. If you do send, send, reply, there's a delay.