Browse Source

修改包体最大传输数量为20m

master
ubuntu20 4 years ago
parent
commit
4ae7ffd3a8
  1. 6
      src/RpcServer.php

6
src/RpcServer.php

@ -59,10 +59,8 @@ class RpcServer extends BaseService {
public function handle(int $fd, string $data) { public function handle(int $fd, string $data) {
$_SERVER['data'] = $data; $_SERVER['data'] = $data;
try { try {
//$ret = include $this->entryPoint;
echo $data."\n";
$ret = "sa";
$this->send($fd, $ret);
$ret = include $this->entryPoint;
$this->send($fd, $data);
} catch (\Error $e) { } catch (\Error $e) {
//TODO 记录日志 //TODO 记录日志
echo "YeeError: ".$e->getMessage(); echo "YeeError: ".$e->getMessage();

Loading…
Cancel
Save