mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
modify lib_fiber module
This commit is contained in:
parent
d6385832d6
commit
d52e8c5113
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,2 +1,4 @@
|
||||
|
||||
include ../Makefile_cpp.in
|
||||
EXTLIBS += -ltcmalloc_minimal
|
||||
PROG = master_fiber
|
||||
|
@ -65,7 +65,7 @@ service master_fiber {
|
||||
# 进程运行时的用户身份
|
||||
fiber_owner = root
|
||||
# 同时启动的线程数
|
||||
fiber_threads = 2
|
||||
fiber_threads = 3
|
||||
|
||||
# 当启用 master_dispatch 连接分开服务后,该配置指定 master_dispatch 所监听的
|
||||
# 域套接口的全路径,这样本子进程就可以从 master_dispatch 获得客户端连接
|
||||
|
Loading…
Reference in New Issue
Block a user