/
Disabling the Nagle Algorithm is a good idea
Disabling the Nagle Algorithm is a good idea
The Nagle algorithm attempts to try and optimize the size of the packets being sent out.
Vismay explains the analogy that it’s like rather than sending two letters with an envelope, address and stamp, the Nagle algorithm takes the content of two letters and delivers them as one letter.
But as I point out this feels like a problem better solved by the application writer rather than the programmer who implements the network stack. So it’s better to turn it off and let the application code optimize how it writes to sockets.
, multiple selections available,
Related content
TCP/IP is a stream protocol
TCP/IP is a stream protocol
More like this
Disabling SIGPIPE
Disabling SIGPIPE
More like this
Implementing a event loop - how do you handle timers?
Implementing a event loop - how do you handle timers?
Read with this
Handling large amounts of data with sockets and an event loop
Handling large amounts of data with sockets and an event loop
More like this
A brief history of sockets
A brief history of sockets
Read with this
Make the abstraction layer as minimal as possible
Make the abstraction layer as minimal as possible
More like this