Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
pool_params::ping_interval

The health-check interval.

Synopsis
std::chrono::steady_clock::duration ping_interval {std::chrono::hours(1)};
Description

If a connection becomes idle and hasn't been handed to the user for ping_interval, a health-check will be performed (using any_connection::async_ping). Pings will be sent with a periodicity of ping_interval until the connection is handed to the user, or a ping fails.

Set this interval to zero to disable pings.

This value must not be negative.


PrevUpHomeNext