mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-03 15:35:17 +00:00
[#1239] make http client ConnectionPool thread safe
This commit is contained in:
@@ -432,9 +432,9 @@ public:
|
|||||||
void closeIfOutOfBandwidth(int socket_fd) {
|
void closeIfOutOfBandwidth(int socket_fd) {
|
||||||
if (MultiThreadingMgr::instance().getMode()) {
|
if (MultiThreadingMgr::instance().getMode()) {
|
||||||
std::lock_guard<std::mutex> lk(mutex_);
|
std::lock_guard<std::mutex> lk(mutex_);
|
||||||
closeIfOutOfBandwidth(socket_fd);
|
closeIfOutOfBandwidthInternal(socket_fd);
|
||||||
} else {
|
} else {
|
||||||
closeIfOutOfBandwidth(socket_fd);
|
closeIfOutOfBandwidthInternal(socket_fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user