From 82d5db81e03996e5812ea07499ff5f2e7598dc8e Mon Sep 17 00:00:00 2001
From: Seva <seva@binarytrails.net>
Date: Mon, 26 Aug 2019 18:34:04 -0400
Subject: [PATCH] http: let the connection terminate

---
 src/http.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/http.cpp b/src/http.cpp
index c0a6b831..821367fa 100644
--- a/src/http.cpp
+++ b/src/http.cpp
@@ -92,8 +92,6 @@ Connection::~Connection()
         if (ec and logger_)
             logger_->e("[http:client]  [connection:%i] error closing: %s", id_, ec.message().c_str());
     }
-    ssl_socket_.reset();
-    socket_.reset();
 }
 
 unsigned int
@@ -726,8 +724,6 @@ Request::terminate(const asio::error_code& ec)
 
     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
     parser_.reset();
     parser_s_.reset();
-- 
GitLab