SocketsHttpHandler.KeepAlivePingDelay Property

Definition

Gets or sets the keep alive ping delay.

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

Property Value

TimeSpan

The keep alive ping delay. Defaults to InfiniteTimeSpan.

Remarks

The client will send a keep alive ping to the server if it doesn't receive any frames on a connection for this period of time. This property is used together with <xref:"P:System.Net.Http.SocketsHttpHandler.KeepAlivePingTimeout%2A" /> to check whether the connection is broken.

Delay value must be greater than or equal to 1 second. Set to InfiniteTimeSpan to disable the keep alive ping.

Applies to