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

[#1818] Restored function after rebase

modified:   src/lib/http/client.cc
This commit is contained in:
Thomas Markwalder
2021-05-14 15:15:48 -04:00
parent 5d32e03e29
commit 897139bca7

View File

@@ -1778,6 +1778,13 @@ public:
stop();
}
/// @brief Starts client's thread pool, if multi-threaded.
void start() {
if (threads_) {
threads_->run();
}
}
/// @brief Close all connections, and if multi-threaded, stops the
/// thread pool.
void stop() {
@@ -1814,19 +1821,6 @@ public:
threads_->run();
}
/// @brief Close all connections, and if multi-threaded, stop internal IOService
/// and the thread pool.
void stop() {
// Stop the thread pool.
if (threads_) {
threads_->stop();
}
// Close all the connections.
conn_pool_->closeAll();
}
/// @brief Fetches the thread pool's run state.
///
/// @return Operational state of the thread pool.