]> granicus.if.org Git - icinga2/commitdiff
Apply ReloadTimeout for 2.11
authorMichael Friedrich <michael.friedrich@icinga.com>
Mon, 13 May 2019 09:22:55 +0000 (11:22 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 19 Jun 2019 12:46:11 +0000 (14:46 +0200)
lib/remote/apilistener-filesync.cpp

index e9a54a88f709fe547d67e5ec8bc720b1284c71bb..bd592afaf993d12889feae88a4d3deb3ba9e305c 100644 (file)
@@ -8,6 +8,7 @@
 #include "base/configtype.hpp"
 #include "base/logger.hpp"
 #include "base/convert.hpp"
+#include "base/application.hpp"
 #include "base/exception.hpp"
 #include "base/utility.hpp"
 #include <fstream>
@@ -564,7 +565,7 @@ void ApiListener::AsyncTryActivateZonesStage(const std::vector<String>& relative
        args->Add("System.ZonesStageVarDir=" + GetApiZonesStageDir());
 
        Process::Ptr process = new Process(Process::PrepareCommand(args));
-       process->SetTimeout(300);
+       process->SetTimeout(Application::GetReloadTimeout());
        process->Run(std::bind(&TryActivateZonesStageCallback, _1, relativePaths));
 }