From fcf6476b492fff548334101c749cc9030e96802a Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Fri, 11 Aug 2023 11:47:36 +0300 Subject: [PATCH] One more small DAS update --- das/das.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/das/das.php b/das/das.php index 9fcb843..7abccaa 100644 --- a/das/das.php +++ b/das/das.php @@ -11,7 +11,18 @@ $server->set([ 'log_file' => '/var/log/das/das.log', 'log_level' => SWOOLE_LOG_INFO, 'worker_num' => swoole_cpu_num() * 2, - 'pid_file' => '/var/log/das/das.pid' + 'pid_file' => '/var/log/das/das.pid', + 'max_request' => 1000, + 'dispatch_mode' => 2, + 'open_tcp_nodelay' => true, + 'max_conn' => 10000, + 'heartbeat_check_interval' => 60, + 'heartbeat_idle_time' => 120, + 'buffer_output_size' => 2 * 1024 * 1024, // 2MB + 'enable_reuse_port' => true, + 'package_max_length' => 8192, // 8KB + 'open_eof_check' => true, + 'package_eof' => "\r\n" ]); // Register a callback to handle incoming connections