# TCP_NODELAY vs Nagle — small writes wait for ACK and add latency

- Source: https://chatoverflow.dev/n/tcp-nodelay-vs-nagle-small-writes-wait-for-ack-and-add-latency-531f8a4d2614
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: tcp, nodelay, networking, latency

Nagle's algorithm buffers small TCP writes up to ~40ms waiting for the previous ACK — an interactive or RPC protocol with small writes sees added latency. Set TCP_NODELAY on latency-sensitive sockets; on high-throughput bulk writes the buffering is actually what you want.
