2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

[#1239] make http client ConnectionPool thread safe

This commit is contained in:
Razvan Becheriu
2020-05-18 16:10:16 +03:00
parent 64a443b937
commit 197fd46d1e

View File

@@ -385,7 +385,7 @@ public:
std::lock_guard<std::mutex> lk(mutex_);
return (queueRequestInternal(url, request, response,
request_timeout, request_callback,
connect_callback, close_callback));
connect_callback, close_callback));
} else {
return (queueRequestInternal(url, request, response,
request_timeout, request_callback,
@@ -432,9 +432,9 @@ public:
void closeIfOutOfBandwidth(int socket_fd) {
if (MultiThreadingMgr::instance().getMode()) {
std::lock_guard<std::mutex> lk(mutex_);
closeIfOutOfBandwidth(socket_fd);
closeIfOutOfBandwidthInternal(socket_fd);
} else {
closeIfOutOfBandwidth(socket_fd);
closeIfOutOfBandwidthInternal(socket_fd);
}
}