SocketsHttpHandler.KeepAlivePingDelay Property


Gets or sets the keep alive ping delay.

 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


The keep alive ping delay. Defaults to InfiniteTimeSpan.


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