Skip to content

Commit

Permalink
Remove extraneous allocation of boost::asio::ssl::stream
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Apr 14, 2016
1 parent 5abe0cb commit 45ff2f6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Release/include/cpprest/details/http_server_asio.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ class connection
m_ssl_context = utility::details::make_unique<boost::asio::ssl::context>(boost::asio::ssl::context::sslv23);
ssl_context_callback(*m_ssl_context);
m_ssl_stream = utility::details::make_unique<boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>(*m_socket, *m_ssl_context);
m_ssl_stream = utility::details::make_unique<boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>(*m_socket, *m_ssl_context);

m_ssl_stream->async_handshake(boost::asio::ssl::stream_base::server, [this](const boost::system::error_code&) { this->start_request_response(); });
}
Expand Down

0 comments on commit 45ff2f6

Please sign in to comment.