Browse Source

remove unused timer

pull/1313/head
orignal 6 years ago
parent
commit
fc84d6c4b7
  1. 3
      daemon/HTTPServer.cpp
  2. 1
      daemon/HTTPServer.h

3
daemon/HTTPServer.cpp

@ -798,8 +798,7 @@ namespace http {
} }
HTTPConnection::HTTPConnection (std::string hostname, std::shared_ptr<boost::asio::ip::tcp::socket> socket): HTTPConnection::HTTPConnection (std::string hostname, std::shared_ptr<boost::asio::ip::tcp::socket> socket):
m_Socket (socket), m_Timer (socket->get_io_service ()), m_BufferLen (0), m_Socket (socket), m_BufferLen (0), expected_host(hostname)
expected_host(hostname)
{ {
/* cache options */ /* cache options */
i2p::config::GetOption("http.auth", needAuth); i2p::config::GetOption("http.auth", needAuth);

1
daemon/HTTPServer.h

@ -39,7 +39,6 @@ namespace http
private: private:
std::shared_ptr<boost::asio::ip::tcp::socket> m_Socket; std::shared_ptr<boost::asio::ip::tcp::socket> m_Socket;
boost::asio::deadline_timer m_Timer;
char m_Buffer[HTTP_CONNECTION_BUFFER_SIZE + 1]; char m_Buffer[HTTP_CONNECTION_BUFFER_SIZE + 1];
size_t m_BufferLen; size_t m_BufferLen;
std::string m_SendBuffer; std::string m_SendBuffer;

Loading…
Cancel
Save