From a7e86b5b7c0de0b5069440e665131a6abc9e37c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Mar 2021 10:47:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rpc/Service.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Rpc/Service.php b/Rpc/Service.php index 25fa3952..9bf3fab8 100644 --- a/Rpc/Service.php +++ b/Rpc/Service.php @@ -34,12 +34,12 @@ class Service extends Component $mode = $service['mode'] ?? SWOOLE_SOCK_TCP6; $rpcServer = $server->addlistener($service['host'], $service['port'], $mode); $rpcServer->set([ - 'open_tcp_keepalive' => true, - 'tcp_keepidle' => 30, - 'tcp_keepinterval' => 10, - 'tcp_keepcount' => 10, - 'open_http_protocol' => false, - 'open_websocket_protocol' => false, +// 'open_tcp_keepalive' => true, +// 'tcp_keepidle' => 30, +// 'tcp_keepinterval' => 10, +// 'tcp_keepcount' => 10, +// 'open_http_protocol' => false, +// 'open_websocket_protocol' => false, ]); } }