|
@ -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(); |
|
|