diff --git a/config/swoole.php b/config/swoole.php index 498cb86..acc7fb3 100644 --- a/config/swoole.php +++ b/config/swoole.php @@ -17,6 +17,8 @@ return [ 'reactor_num' => swoole_cpu_num(), 'worker_num' => swoole_cpu_num(), 'task_worker_num' => swoole_cpu_num(), + 'max_request' => 10000, + 'max_task_request' => 10000, 'enable_static_handler' => true, 'document_root' => root_path('public'), 'package_max_length' => 20 * 1024 * 1024,