From fc84d6c4b728fc6477f0ca46fda1d2f9e6294d05 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 17 Mar 2019 21:37:42 -0400 Subject: [PATCH] remove unused timer --- daemon/HTTPServer.cpp | 3 +-- daemon/HTTPServer.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index a9bdd3f6..b7771d56 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -798,8 +798,7 @@ namespace http { } HTTPConnection::HTTPConnection (std::string hostname, std::shared_ptr socket): - m_Socket (socket), m_Timer (socket->get_io_service ()), m_BufferLen (0), - expected_host(hostname) + m_Socket (socket), m_BufferLen (0), expected_host(hostname) { /* cache options */ i2p::config::GetOption("http.auth", needAuth); diff --git a/daemon/HTTPServer.h b/daemon/HTTPServer.h index a1b82875..3d32ed2b 100644 --- a/daemon/HTTPServer.h +++ b/daemon/HTTPServer.h @@ -39,7 +39,6 @@ namespace http private: std::shared_ptr m_Socket; - boost::asio::deadline_timer m_Timer; char m_Buffer[HTTP_CONNECTION_BUFFER_SIZE + 1]; size_t m_BufferLen; std::string m_SendBuffer;