Take ownership of the socket
| 338 | public: |
| 339 | // Take ownership of the socket |
| 340 | http_session( |
| 341 | tcp::socket&& socket, |
| 342 | std::shared_ptr<std::string const> const& doc_root) |
| 343 | : stream_(std::move(socket)) |
| 344 | , doc_root_(doc_root) |
| 345 | { |
| 346 | static_assert(queue_limit > 0, |
| 347 | "queue limit must be positive"); |
| 348 | } |
| 349 | |
| 350 | // Start the session |
| 351 | void |