mirror of
https://github.com/nasa/trick.git
synced 2025-02-23 10:10:21 +00:00
The TCP_NODELAY socket option disables Nagle's algorithm on TCP sockets, improving latency at the cost of throughput. This option is TCP-specific, and it is an error to use it on any other kind of socket, including UDP. It is also unnecessary, since UDP is datagram-based and does not buffer data to be transmitted.