Skip to content

Commit 45ff2f6

Browse files
committed
Remove extraneous allocation of boost::asio::ssl::stream
1 parent 5abe0cb commit 45ff2f6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Release/include/cpprest/details/http_server_asio.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ class connection
8989
m_ssl_context = utility::details::make_unique<boost::asio::ssl::context>(boost::asio::ssl::context::sslv23);
9090
ssl_context_callback(*m_ssl_context);
9191
m_ssl_stream = utility::details::make_unique<boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>(*m_socket, *m_ssl_context);
92-
m_ssl_stream = utility::details::make_unique<boost::asio::ssl::stream<boost::asio::ip::tcp::socket&>>(*m_socket, *m_ssl_context);
9392

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

0 commit comments

Comments
 (0)