Export (0) Print
Expand All

HttpTransportBindingElement.MaxPendingAccepts Property

.NET Framework 4.5

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

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public int MaxPendingAccepts { get; set; }

Property Value

Type: System.Int32
The maximum number of connections the service can accept simultaneously.

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.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft