SocketsHttpHandler.ConnectTimeout Property

Definition

Gets or sets the timespan to wait before the connection establishing times out.

C#
public TimeSpan ConnectTimeout { get; set; }

Property Value

The timespan to wait before the connection establishing times out. The default value is InfiniteTimeSpan.

Applies to

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