...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Automatic ping setting.
bool keep_alive_pings;
If the idle interval is set, this setting affects the behavior of the stream when no data is received for the timeout interval as follows:
keep_alive_pings
is true
, an idle ping
will be sent automatically. If another timeout interval elapses with
no received data then the connection will be closed. An outstanding
read operation must be pending, which will complete immediately the
error beast::error::timeout
.
keep_alive_pings
is false
, the connection
will be closed. An outstanding read operation must be pending, which
will complete immediately the error beast::error::timeout
.