SocketsHttpHandler.MaxConnectionsPerServer Property

Definition

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

C#
public int MaxConnectionsPerServer { get; set; }

Property Value

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

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

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10