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:
property int MaxPendingAccepts {
	int get();
	void set(int value);
}

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.

Exception Condition
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
Available since 3.0
Return to top
Show: