summaryrefslogtreecommitdiffstats
path: root/src/lib/config
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2023-01-07 21:00:51 +0100
committerRazvan Becheriu <razvan@isc.org>2023-02-16 17:03:56 +0100
commitf412fb373f12ba2b645e98869158afb861827451 (patch)
tree908e3ef30abf39ae73cd4189fef922943f572b90 /src/lib/config
parent[#2402] remove the regex check in statusGet UT (diff)
downloadkea-f412fb373f12ba2b645e98869158afb861827451.tar.xz
kea-f412fb373f12ba2b645e98869158afb861827451.zip
[#2704] fixed clang TSAN warnings by startong thread pools after setting up connections
Diffstat (limited to 'src/lib/config')
-rw-r--r--src/lib/config/cmd_http_listener.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/config/cmd_http_listener.cc b/src/lib/config/cmd_http_listener.cc
index c5e8d30b46..83408a6a24 100644
--- a/src/lib/config/cmd_http_listener.cc
+++ b/src/lib/config/cmd_http_listener.cc
@@ -67,13 +67,13 @@ CmdHttpListener::start() {
HttpListener::RequestTimeout(TIMEOUT_AGENT_RECEIVE_COMMAND),
HttpListener::IdleTimeout(TIMEOUT_AGENT_IDLE_CONNECTION_TIMEOUT)));
- // Create the thread pool with immediate start.
- thread_pool_.reset(new IoServiceThreadPool(thread_io_service_, thread_pool_size_));
-
// Instruct the HTTP listener to actually open socket, install
// callback and start listening.
http_listener_->start();
+ // Create the thread pool with immediate start.
+ thread_pool_.reset(new IoServiceThreadPool(thread_io_service_, thread_pool_size_));
+
// OK, seems like we're good to go.
LOG_DEBUG(command_logger, DBG_COMMAND, COMMAND_HTTP_LISTENER_STARTED)
.arg(thread_pool_size_)