update to 1.6 version

This commit is contained in:
whale
2020-07-11 15:53:30 +08:00
parent 23b1f797ad
commit 7b7a2d7010
8 changed files with 1141 additions and 166 deletions

View File

@@ -27,7 +27,8 @@ $config['swoole'] = [
'log_file' => $config['crash_dir'].'swoole_error.log',
'worker_num' => 1,
'dispatch_mode' => 2,
'task_worker_num' => 0
//'task_worker_num' => 1,
//'task_enable_coroutine' => true
];
/** MySQL数据库连接信息host留空则启动时不创建sql连接池 */
@@ -85,4 +86,9 @@ $config['static_file_server'] = [
]
];
/** 注册 Swoole Server 事件注解的类列表 */
$config['server_event_handler_class'] = [
\Framework\ServerEventHandler::class, //默认不可删除,否则会不能使用框架
];
return $config;