SocketTools .NET Edition

InternetServer.NoDelay Property

Gets and sets a value which specifies if the Nagle algorithm should be enabled or disabled.

[Visual Basic]
Public Property NoDelay As Boolean
[C#]
public bool NoDelay {get; set;}

Property Value

Returns true if the Nagle algorithm has been disabled; otherwise it returns false. The default value is false.

Remarks

The NoDelay property is used to enable or disable the Nagle algorithm, which buffers unacknowledged data and insures that a full-size packet can be sent to the remote host. By default this property value is set to false, which enables the Nagle algorithm (in other words, the data being written may not actually be sent until it is optimal to do so). Setting this property to true disables the Nagle algorithm, maintaining the time delays between the data packets being sent.

This property should be set to true only if it is absolutely required and the implications of doing so are understood. Disabling the Nagle algorithm can have a significant negative impact on the performance of your server.

See Also

InternetServer Class | SocketTools Namespace