SocketsHttpHandler.KeepAlivePingDelay Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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 KeepAlivePingTimeout 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.