| 78 | } |
| 79 | |
| 80 | void server::do_await_stop() |
| 81 | { |
| 82 | signals_.async_wait( |
| 83 | [this](boost::system::error_code /*ec*/, int /*signo*/) |
| 84 | { |
| 85 | // The server is stopped by cancelling all outstanding asynchronous |
| 86 | // operations. Once all operations have finished the io_context::run() |
| 87 | // call will exit. |
| 88 | acceptor_.close(); |
| 89 | connection_manager_.stop_all(); |
| 90 | }); |
| 91 | } |
| 92 | |
| 93 | } // namespace server |
| 94 | } // namespace http |
nothing calls this directly
no test coverage detected