Start the session
| 665 | |
| 666 | // Start the session |
| 667 | void |
| 668 | run() |
| 669 | { |
| 670 | // Set the timeout. |
| 671 | beast::get_lowest_layer(stream_).expires_after(std::chrono::seconds(30)); |
| 672 | |
| 673 | // Perform the SSL handshake |
| 674 | // Note, this is the buffered version of the handshake. |
| 675 | stream_.async_handshake( |
| 676 | ssl::stream_base::server, |
| 677 | buffer_.data(), |
| 678 | beast::bind_front_handler( |
| 679 | &ssl_http_session::on_handshake, |
| 680 | shared_from_this())); |
| 681 | } |
| 682 | |
| 683 | // Called by the base class |
| 684 | ssl::stream<beast::tcp_stream>& |
nothing calls this directly
no test coverage detected