modify lib_fiber module

This commit is contained in:
Zheng Shuxin 2017-07-03 16:00:05 +08:00
parent d6385832d6
commit d52e8c5113
4 changed files with 6 additions and 4 deletions

View File

@ -6,5 +6,5 @@ incr none yes
#dbsize master yes
all none yes
flushdb master no
flushall master no
#flushdb master no
#flushall master no

View File

@ -429,7 +429,7 @@ int event_process(EVENT *ev, int timeout)
/* limit the event wait time just for fiber schedule exiting
* quickly when no tasks left
*/
if (timeout > 1000)
if (timeout > 1000 || timeout <= 0)
timeout = 1000;
#ifdef DEL_DELAY

View File

@ -1,2 +1,4 @@
include ../Makefile_cpp.in
EXTLIBS += -ltcmalloc_minimal
PROG = master_fiber

View File

@ -65,7 +65,7 @@ service master_fiber {
# 进程运行时的用户身份
fiber_owner = root
# 同时启动的线程数
fiber_threads = 2
fiber_threads = 3
# 当启用 master_dispatch 连接分开服务后该配置指定 master_dispatch 所监听的
# 域套接口的全路径这样本子进程就可以从 master_dispatch 获得客户端连接