KeepAliveTime

This property specifies the idle time before a keepalive probe is sent.

Declaration

// C#
public static int KeepAliveTime  { get; set; }

Property Type

System.Int32

Remarks

In seconds. The default is 60 seconds.

KeepAliveTime specifies the idle time to wait until sending a probe to verify the connection remains active and to keep that connection active. If the remote TCP sends back an acknowledgement of receiving the probe, then no further probe is sent until another KeepAliveTime idle period has elapsed.

Whenever independent connection activity occurs, KeepAliveTime is reset. When that activity ends, the KeepAliveTime starts its countdown to sending a probe.