Skip to main content
property tcp_keep_alive

Gets whether TCP keep-alive is on for the connections to the database, so that a long-running request behind a NAT, a firewall or a load balancer is not dropped as idle. Default True. How soon and how often it probes is the operating system’s default (two hours, then every 75 seconds, 9 times, on Linux) unless tcp_keep_idle, tcp_keep_interval and tcp_keep_count say otherwise. For a long-running request, also set a timeout.