mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
崩溃重启时间改成3秒 (#1536)
在负载比较重的机器上重启子进程太快了. 很容易导致端口仍旧还未释放完毕导致的错误 端口已被占用 从而主进程直接退出. 因此适当延长重启的间隔时间
This commit is contained in:
parent
9ea6faa9ce
commit
007164ac9b
@ -110,8 +110,8 @@ void System::startDaemon() {
|
||||
int status = 0;
|
||||
if(waitpid(pid, &status, 0) >= 0) {
|
||||
WarnL << "子进程退出";
|
||||
//休眠1秒再启动子进程
|
||||
sleep(1);
|
||||
//休眠3秒再启动子进程
|
||||
sleep(3);
|
||||
break;
|
||||
}
|
||||
DebugL << "waitpid被中断:" << get_uv_errmsg();
|
||||
|
Loading…
Reference in New Issue
Block a user