specialunderwear/websocketpp — comment on commit 77a2208501cb88957d9fa4483d33c00b0435cd7a
File:  line 0
By megabyte1024:

Do you need access to the io_service inside of on_tls_init? If no, then every connection has a reference to the io_service, for instance,

void CTestHandler::on_open(connection_ptr connection) {
if (connection != nullptr) {
boost::asio::io_service &service = connection->get_io_service();
}
}