Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
pool_params::idle_timeout

The time a connection may stay idle before being closed.

Synopsis
std::chrono::steady_clock::duration idle_timeout {};
Description

If a connection stays idle for at least this value, and the pool has more than initial_size connections (in any state), the connection is closed and removed from the pool. The pool never shrinks below initial_size connections.

Set this value to zero (the default) to never close idle connections.

This value must not be negative.


PrevUpHomeNext