From 0fb1bf8439e29d283ff30b32c3df0bbdbdbdc543 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 26 Oct 2019 19:47:48 +0200 Subject: Core/Misc: Enable MaxCoreStuckTime setting by default Enable MaxCoreStuckTime setting by default to force worldserver to exit in case of infinite loops. Note that this will not affect existing setups with the setting MaxCoreStuckTime set to 0 in the local worldserver.conf . (cherry picked from commit 00703ee238729a8d5b3d17edf8dc16d6c6c6b601) --- src/server/worldserver/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/worldserver/Main.cpp') diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index c24d60eef54..a5dcf4ac525 100644 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -327,7 +327,7 @@ extern int main(int argc, char** argv) // Start the freeze check callback cycle in 5 seconds (cycle itself is 1 sec) std::shared_ptr freezeDetector; - if (int coreStuckTime = sConfigMgr->GetIntDefault("MaxCoreStuckTime", 0)) + if (int coreStuckTime = sConfigMgr->GetIntDefault("MaxCoreStuckTime", 60)) { freezeDetector = std::make_shared(*ioContext, coreStuckTime * 1000); FreezeDetector::Start(freezeDetector); -- cgit v1.2.3