From 8d480322ddc28b2cca6ed74ca1b7ff7da4dca5cf Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Thu, 29 Apr 2021 17:57:31 +0800 Subject: [PATCH] Update Swoole default options --- src/Commands/StartSwooleCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/StartSwooleCommand.php b/src/Commands/StartSwooleCommand.php index 894bf565e..1814ab40e 100644 --- a/src/Commands/StartSwooleCommand.php +++ b/src/Commands/StartSwooleCommand.php @@ -121,10 +121,10 @@ protected function defaultServerOptions(SwooleExtension $extension) 'log_file' => storage_path('logs/swoole_http.log'), 'log_level' => app()->environment('local') ? SWOOLE_LOG_INFO : SWOOLE_LOG_ERROR, 'max_request' => $this->option('max-requests'), - 'package_max_length' => 20 * 1024 * 1024, + 'package_max_length' => 10 * 1024 * 1024, 'reactor_num' => $this->workerCount($extension), 'send_yield' => true, - 'socket_buffer_size' => 128 * 1024 * 1024, + 'socket_buffer_size' => 10 * 1024 * 1024, 'task_max_request' => $this->option('max-requests'), 'task_worker_num' => $this->taskWorkerCount($extension), 'worker_num' => $this->workerCount($extension),