| 262 | } |
| 263 | |
| 264 | void |
| 265 | do_read() |
| 266 | { |
| 267 | // Set the timeout. |
| 268 | beast::get_lowest_layer( |
| 269 | derived().stream()).expires_after(std::chrono::seconds(30)); |
| 270 | |
| 271 | // Read a request |
| 272 | http::async_read( |
| 273 | derived().stream(), |
| 274 | buffer_, |
| 275 | req_, |
| 276 | beast::bind_front_handler( |
| 277 | &session::on_read, |
| 278 | derived().shared_from_this())); |
| 279 | } |
| 280 | |
| 281 | void |
| 282 | on_read( |
nothing calls this directly
no test coverage detected