HttpTransportBindingElement.MaxPendingAccepts Property

Definition

Gets or sets the maximum number of connections the service can accept simultaneously.

public int MaxPendingAccepts { get; set; }

Property Value

The maximum number of connections the service can accept simultaneously.

Remarks

The default value of MaxPendingAccepts is 0, which means WCF will configure the value for you. You can increase the number for better scalability. In the self-hosted case, this property controls the maximum number of simultaneous BeginGetContext calls WCF will invoke. Each time BeginGetContext is called some memory is pinned within the managed heap for buffering. If too many buffers are pinned, excessive heap fragmentation may result. This property is ignored in the web-hosted case.

Applies to

Product Versions
.NET 8 (package-provided)
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1