This topic has not yet been rated - Rate this topic

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.5

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.