SocketsHttpHandler.PooledConnectionIdleTimeout Property

Definition

Gets or sets how long a connection can be idle in the pool to be considered reusable.

C#
public TimeSpan PooledConnectionIdleTimeout { get; set; }

Property Value

The maximum idle time for a connection in the pool. The default value for this property is 1 minute in .NET 6 and later versions; the default value is 2 minutes in .NET Core and .NET 5

Exceptions

The value specified is less than Zero (except InfiniteTimeSpan).

Applies to

Produkt Verzie
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10