Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ConnectionOrientedTransportBindingElement.MaxPendingAccepts Property

Gets or sets the maximum number of channels a service can have waiting on a listener for processing incoming connections to the service.

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 channels a service can have waiting on a listener. The default value is 2 * number of processors.

ExceptionCondition
ArgumentOutOfRangeException

The value is less than or equal to zero.

This property limits the number of channels that the server can have waiting on a listener. When MaxPendingAccepts is too low, there will be a small interval of time in which all of the waiting channels have started servicing connections, but no new channels have begun listening. A connection can arrive during this interval and will fail because nothing is waiting for it on the server. This property can be configured by setting the MaxPendingConnections property to a larger number.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft