@@ -94,7 +94,7 @@ namespace web { namespace http
94
94
}
95
95
}
96
96
97
- void put (std::shared_ptr<linux_connection> connection)
97
+ void release (std::shared_ptr<linux_connection> connection)
98
98
{
99
99
std::lock_guard<std::mutex> lock (m_connections_mutex);
100
100
@@ -105,7 +105,7 @@ namespace web { namespace http
105
105
m_connections.insert (connection);
106
106
}
107
107
108
- std::shared_ptr<linux_connection> get ()
108
+ std::shared_ptr<linux_connection> obtain ()
109
109
{
110
110
std::lock_guard<std::mutex> lock (m_connections_mutex);
111
111
@@ -421,7 +421,7 @@ namespace web { namespace http
421
421
boost::system::error_code error;
422
422
ctx->m_connection ->m_socket .shutdown (tcp::socket::shutdown_both, error);
423
423
ctx->m_connection ->m_socket .close (error);
424
- ctx->m_connection = m_pool->get ();
424
+ ctx->m_connection = m_pool->obtain ();
425
425
426
426
auto endpoint = *endpoints;
427
427
if (ctx->m_ssl_stream )
@@ -995,7 +995,7 @@ namespace web { namespace http
995
995
std::shared_ptr<_http_client_communicator> &client, http_request &request)
996
996
{
997
997
auto client_cast (std::static_pointer_cast<linux_client>(client));
998
- auto connection (client_cast->m_pool ->get ());
998
+ auto connection (client_cast->m_pool ->obtain ());
999
999
return std::make_shared<linux_client_request_context>(client, request, connection);
1000
1000
}
1001
1001
@@ -1013,7 +1013,7 @@ namespace web { namespace http
1013
1013
else
1014
1014
{
1015
1015
m_connection->m_socket .cancel (error);
1016
- std::static_pointer_cast<linux_client>(m_http_client)->m_pool ->put (m_connection);
1016
+ std::static_pointer_cast<linux_client>(m_http_client)->m_pool ->release (m_connection);
1017
1017
}
1018
1018
}
1019
1019
0 commit comments