Editar

Partilhar via


SocketsHttpHandler.MaxConnectionsPerServer Property

Definition

Gets or sets the maximum number of simultaneous TCP connections allowed to a single server.

public:
 property int MaxConnectionsPerServer { int get(); void set(int value); };
public int MaxConnectionsPerServer { get; set; }
member this.MaxConnectionsPerServer : int with get, set
Public Property MaxConnectionsPerServer As Integer

Property Value

The maximum number of simultaneous TCP connections allowed to a single server.

Exceptions

The value specified is less than or equal to zero.

An operation has already been started on the current instance.

The current instance has been disposed.

Remarks

In this context, server means a unique combination of

  • IDN host name (as used in the request URI)
  • Port
  • Value of the Host HTTP header (if present, e.g. when HTTPS is used)
  • URI of the HTTP Proxy (if proxy is used).

Applies to