ServicePointManager.UseNagleAlgorithm Propiedad

Definición

Determina si los puntos del servicio administrados por este objeto ServicePointManager utilizan el algoritmo de Nagle.

public:
 static property bool UseNagleAlgorithm { bool get(); void set(bool value); };
public static bool UseNagleAlgorithm { get; set; }
static member UseNagleAlgorithm : bool with get, set
Public Shared Property UseNagleAlgorithm As Boolean

Valor de propiedad

Es true para usar el algoritmo de Nagle; en caso contrario, es false. El valor predeterminado es true.

Ejemplos

En el ejemplo de código siguiente se establece esta propiedad.

ServicePointManager::UseNagleAlgorithm = true;
ServicePointManager::Expect100Continue = true;
ServicePointManager::CheckCertificateRevocationList = true;
ServicePointManager::DefaultConnectionLimit = ServicePointManager::DefaultPersistentConnectionLimit;
ServicePointManager.UseNagleAlgorithm = true;
ServicePointManager.Expect100Continue = true;
ServicePointManager.CheckCertificateRevocationList = true;
ServicePointManager.DefaultConnectionLimit = ServicePointManager.DefaultPersistentConnectionLimit;
ServicePointManager.UseNagleAlgorithm = True
ServicePointManager.Expect100Continue = True
ServicePointManager.CheckCertificateRevocationList = True
ServicePointManager.DefaultConnectionLimit = _
    ServicePointManager.DefaultPersistentConnectionLimit

Comentarios

El algoritmo nagle se usa para reducir el tráfico de red almacenando en búfer pequeños paquetes de datos y transmitiéndolos como un único paquete. Este proceso también se conoce como "nagling"; se usa ampliamente porque reduce el número de paquetes transmitidos y reduce la sobrecarga por paquete.

Cambiar el valor de esta propiedad no afecta a los objetos existentes ServicePoint . Solo se verán afectados los nuevos puntos de servicio creados después del cambio.

El algoritmo nagle se describe completamente en IETF RFC 896.

Se aplica a

Consulte también