From 644ea7a566417e23f647d63ea6c406efeba08586 Mon Sep 17 00:00:00 2001 From: yf <291323003@qq.com> Date: Tue, 15 Jan 2019 21:27:15 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8C=E4=BD=BF=E4=BB=A3=E7=A0=81=E7=AC=A6=E5=90=88?= =?UTF-8?q?PSR2=E8=A7=84=E8=8C=83"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6f0d97d8bbeceb9c3420ea947b47b4b819d5dd4e. # Conflicts: # src/Resource/Config.php --- src/Resource/Config.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/Resource/Config.php diff --git a/src/Resource/Config.php b/src/Resource/Config.php new file mode 100644 index 00000000..443c7a85 --- /dev/null +++ b/src/Resource/Config.php @@ -0,0 +1,40 @@ + "EasySwoole", + 'MAIN_SERVER' => [ + 'LISTEN_ADDRESS' => '0.0.0.0', + 'PORT' => 9501, + 'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER + 'SOCK_TYPE' => SWOOLE_TCP, + 'RUN_MODEL' => SWOOLE_PROCESS, + 'SETTING' => [ + 'worker_num' => 8, + 'max_request' => 5000, + 'task_worker_num' => 8, + 'task_max_request' => 1000, + ], + ], + 'TEMP_DIR' => null, + 'LOG_DIR' => null, + 'CONSOLE' => [ + 'ENABLE' => true, + 'LISTEN_ADDRESS' => '127.0.0.1', + 'HOST' => '127.0.0.1', + 'PORT' => 9500, + 'EXPIRE' => '120', + 'AUTH' => null, + 'PUSH_LOG' => true, + ], + 'FAST_CACHE' => [ + 'PROCESS_NUM' => 0, + 'BACKLOG' => 256, + ], + 'DISPLAY_ERROR' => true, +];