ServicePointManager.UseNagleAlgorithm Vlastnost

Definice

Určuje, zda je algoritmus Nagle používán body služby spravované tímto ServicePointManager objektem.

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

Hodnota vlastnosti

truepoužívat Nagle algoritmus; v opačném případě . false Výchozí hodnota je true.

Příklady

Následující příklad kódu nastaví tuto vlastnost.

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

Poznámky

Algoritmus Nagle se používá ke snížení síťového provozu tím, že ukládá malé pakety dat do vyrovnávací paměti a přenáší je jako jeden paket. Tento proces se také označuje jako "nagling"; je široce používán, protože snižuje počet přenášených paketů a snižuje režijní náklady na pakety.

Změna hodnoty této vlastnosti nemá vliv na existující ServicePoint objekty. Ovlivněny jsou pouze nové body služby vytvořené po změně.

Algoritmus Nagle je plně popsaný v dokumentu IETF RFC 896.

Platí pro

Viz také