ServicePointManagerElement.UseNagleAlgorithm Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a Boolean value that determines whether the Nagle algorithm is used.

Namespace:   System.Net.Configuration
Assembly:  System (in System.dll)

[ConfigurationPropertyAttribute("useNagleAlgorithm", DefaultValue = true)]
public bool UseNagleAlgorithm { get; set; }

Property Value

Type: System.Boolean

true to use the Nagle algorithm; otherwise, false. The default value is true.

The Nagle algorithm is used to reduce network traffic by buffering small packets of data and transmitting them as a single packet. This process is also referred to as "nagling"; it is widely used because it reduces the number of packets transmitted and lowers the overhead per packet.

.NET Framework
Available since 2.0
Return to top