Skip to content
Snippets Groups Projects
Commit 82d5db81 authored by Seva's avatar Seva Committed by Adrien Béraud
Browse files

http: let the connection terminate

parent fbb90a71
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,6 @@ Connection::~Connection() ...@@ -92,8 +92,6 @@ Connection::~Connection()
if (ec and logger_) if (ec and logger_)
logger_->e("[http:client] [connection:%i] error closing: %s", id_, ec.message().c_str()); logger_->e("[http:client] [connection:%i] error closing: %s", id_, ec.message().c_str());
} }
ssl_socket_.reset();
socket_.reset();
} }
unsigned int unsigned int
...@@ -726,8 +724,6 @@ Request::terminate(const asio::error_code& ec) ...@@ -726,8 +724,6 @@ Request::terminate(const asio::error_code& ec)
finishing_.store(true); finishing_.store(true);
// close the connection cancelling the scheduled socket operations on the io_context
conn_.reset();
// reset the http_parser holding the data pointer to the user callbacks // reset the http_parser holding the data pointer to the user callbacks
parser_.reset(); parser_.reset();
parser_s_.reset(); parser_s_.reset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment