Replaced Server/Client::shared_from_this with asio callback checks if the Server/Client has been destroyed. Also added SharedMutex to utility.hpp.
This commit is contained in:
parent
53c9ff64c0
commit
9b5063f422
9 changed files with 500 additions and 163 deletions
|
|
@ -13,7 +13,7 @@ public:
|
|||
void accept() override {}
|
||||
|
||||
void parse_request_test() {
|
||||
auto session = std::make_shared<Session>(this->shared_from_this(), std::make_shared<HTTP>(*io_service));
|
||||
auto session = std::make_shared<Session>(this, std::make_shared<HTTP>(*io_service));
|
||||
|
||||
std::ostream stream(&session->request->content.streambuf);
|
||||
stream << "GET /test/ HTTP/1.1\r\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue