This property specifies whether to keep an idle connection alive.


// C#
public static Boolean KeepAlive { get; set; }

Property Type



Turn KeepAlive on to prevent an idle TCP connection from being killed, such as a by a firewall. KeepAlive will keep the connection alive by periodically sending a probe packet with no data in it and the ACK flag turned on.

This setting is used in conjunction with KeepAliveInterval and KeepAliveTime.

The KeepAlive default is false.

Starting in ODP.NET Core 19.10, KeepAlive is supported on non-Windows operating systems, such as Oracle Linux. For these non-Windows operating systems, .NET Core 3 or higher is required.