From a4ba8aff95259cce5ce0da01f3821b5f4f1389b9 Mon Sep 17 00:00:00 2001 From: An Tao Date: Sat, 30 Apr 2022 00:45:19 +0800 Subject: [PATCH] Reset timer afters relauching in Linux (#1232) --- lib/src/HttpAppFrameworkImpl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/HttpAppFrameworkImpl.cc b/lib/src/HttpAppFrameworkImpl.cc index 0a962cbc..d2ec1545 100644 --- a/lib/src/HttpAppFrameworkImpl.cc +++ b/lib/src/HttpAppFrameworkImpl.cc @@ -493,6 +493,9 @@ void HttpAppFrameworkImpl::run() sleep(1); LOG_INFO << "start new process"; } +#ifdef __linux__ + getLoop()->resetTimerQueue(); +#endif getLoop()->resetAfterFork(); #endif }