From: Gunnar Beutner Date: Wed, 28 Jan 2015 07:35:36 +0000 (+0100) Subject: Use a separate thread for TLS connection attempts X-Git-Tag: v2.3.0~331 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88e1aadbf2e7f86692afc58064598cb561c58edb;p=icinga2 Use a separate thread for TLS connection attempts fixes #8295 --- diff --git a/lib/remote/apilistener.cpp b/lib/remote/apilistener.cpp index 25cadb951..15ef5275c 100644 --- a/lib/remote/apilistener.cpp +++ b/lib/remote/apilistener.cpp @@ -407,7 +407,8 @@ void ApiListener::ApiTimerHandler(void) if (endpoint->GetConnecting()) continue; - Utility::QueueAsyncCallback(boost::bind(&ApiListener::AddConnection, this, endpoint)); + boost::thread thread(boost::bind(&ApiListener::AddConnection, this, endpoint)); + thread.detach(); } } }