From 7869de1e0f94b9a1088fbb6bcfe20cb591cbb78f Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 6 Dec 2015 16:16:29 +0000 Subject: [PATCH] Decrease max select()/poll() timeout to 5 sec. With signals on a different thread, select() isn't interrupted anymore. Probably need to wake up it differently now... --- src/znc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/znc.cpp b/src/znc.cpp index 146f8fbe..1f7d92ac 100644 --- a/src/znc.cpp +++ b/src/znc.cpp @@ -237,8 +237,8 @@ void CZNC::Loop() { } // Csocket wants micro seconds - // 100 msec to 600 sec - m_Manager.DynamicSelectLoop(100 * 1000, 600 * 1000 * 1000); + // 100 msec to 5 sec + m_Manager.DynamicSelectLoop(100 * 1000, 5 * 1000 * 1000); } }