ServicePointManager.UseNagleAlgorithm 속성

정의

ServicePointManager 개체에서 관리하는 서비스 지점에서 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

속성 값

Nagle 알고리즘을 사용하려면 true이고, 사용하지 않으려면 false입니다. 기본값은 true입니다.

예제

다음 코드 예제에서는이 속성을 설정합니다.

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

설명

Nagle 알고리즘은 작은 데이터 패킷을 버퍼링 및 단일 패킷으로 전송 하 여 네트워크 트래픽을 줄이기 위해 사용 됩니다. 이 프로세스는 라고도 "nagling"; 패킷 전송 수가 줄어들기 때문에 널리 사용 되 고 패킷 당 오버 헤드를 줄입니다.

이 속성의 값을 변경해도 기존 ServicePoint 개체에는 영향을 주지 않습니다. 변경 후 생성된 새 서비스 지점만 영향을 받습니다.

Nagle 알고리즘은 IETF RFC 896에 완전히 설명되어 있습니다.

적용 대상

추가 정보