Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
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