HttpTransportBindingElement.MaxPendingAccepts Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the maximum number of connections the service can accept simultaneously.
public:
property int MaxPendingAccepts { int get(); void set(int value); };
public int MaxPendingAccepts { get; set; }
member this.MaxPendingAccepts : int with get, set
Public Property MaxPendingAccepts As Integer
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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: