From 8f4e977d566bb1291858c4f00df9627f92af0e88 Mon Sep 17 00:00:00 2001 From: qieangel2013 <904208360@qq.com> Date: Sun, 18 Sep 2016 16:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=8F=E8=AE=AE=E5=8C=85?= =?UTF-8?q?=E6=9C=80=E5=A4=A7=E9=95=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改协议包最大长度 --- server/FileDistributedClient.php | 2 +- server/FileDistributedServer.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/FileDistributedClient.php b/server/FileDistributedClient.php index ab362ad..c8a7023 100644 --- a/server/FileDistributedClient.php +++ b/server/FileDistributedClient.php @@ -39,7 +39,7 @@ public function addServerClient($address) 'package_length_type' => 'N', 'package_length_offset' => 0, //第N个字节是包长度的值 'package_body_offset' => 4, //第几个字节开始计算长度 - 'package_max_length' => 2000000 //协议最大长度 + 'package_max_length' => 1024 * 1024 * 20 //协议最大长度 )); $client->on('Connect', array( &$this, diff --git a/server/FileDistributedServer.php b/server/FileDistributedServer.php index 7d9b8f1..271cea4 100644 --- a/server/FileDistributedServer.php +++ b/server/FileDistributedServer.php @@ -48,7 +48,7 @@ public function __construct() 'package_length_type' => 'N', 'package_length_offset' => 0, //第N个字节是包长度的值 'package_body_offset' => 4, //第几个字节开始计算长度 - 'package_max_length' => 2000000, //协议最大长度 + 'package_max_length' => 1024 * 1024 * 20, //协议最大长度 'log_file' => ServerLog )); } else { @@ -60,7 +60,7 @@ public function __construct() 'package_length_type' => 'N', 'package_length_offset' => 0, //第N个字节是包长度的值 'package_body_offset' => 4, //第几个字节开始计算长度 - 'package_max_length' => 2000000, //协议最大长度 + 'package_max_length' => 1024 * 1024 * 20, //协议最大长度 'daemonize' => true )); }