diff options
author | eidheim <eidheim@gmail.com> | 2020-04-17 13:05:22 +0300 |
---|---|---|
committer | eidheim <eidheim@gmail.com> | 2020-04-17 13:05:22 +0300 |
commit | 4bbf9c8d3c48efa5e3fb391c6c74974bc0913a30 (patch) | |
tree | 812ecf32142566bec5dc6c00c9a01eb37da08142 | |
parent | 4c8c21cb5943b7272e88ffef1649a1dd72b89852 (diff) |
Initialize in_message when client connects to proxy
-rw-r--r-- | client_wss.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client_wss.hpp b/client_wss.hpp index 7b961a6..55ee929 100644 --- a/client_wss.hpp +++ b/client_wss.hpp @@ -96,6 +96,7 @@ namespace SimpleWeb { return; if(!ec) { connection->set_timeout(this->config.timeout_request); + connection->in_message = std::shared_ptr<InMessage>(new InMessage()); asio::async_read_until(connection->socket->next_layer(), connection->in_message->streambuf, "\r\n\r\n", [this, connection](const error_code &ec, std::size_t /*bytes_transferred*/) { connection->cancel_timeout(); auto lock = connection->handler_runner->continue_lock(); |