Przeczytaj w języku angielskim Edytuj

Udostępnij za pośrednictwem


TcpTransportBindingElement.ListenBacklog Property

Definition

Gets or sets the maximum number of queued connection requests that can be pending.

public int ListenBacklog { get; set; }

Property Value

Returns the maximum number of queued connection requests that can be pending. The default is 10.

Exceptions

The value cannot be less than one.

Examples

The following example shows how to get the ListenBacklog value.

int listenBacklog = bElement.ListenBacklog;

Remarks

ListenBacklog is a socket-level property that describes the number of "pending accept" requests to be queued. Ensure that the underlying socket queue is not exceeded by the maximum number of concurrent connections.

Applies to

Produkt Wersje
.NET Framework 3.0, 3.5, 4.0, 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