ConnectedSocket.setNagle

Enables or disables Nagle on a TCP socket

Nagle is a packet aggregation algorithm employed over TCP. When enabled, under certain conditions, data sent gets delayed, hoping to combine it with future data into less packets. The problem is that for request/response type protocols (such as HTTP), this algorithm might result in increased latency.

This function allows selectively enabling/disabling Nagle on TCP sockets.

struct ConnectedSocket
@trusted @nogc
void
setNagle
(
bool on
)

Meta