Commit 328b6fe1 by 王召彬

修改-去掉rpc连接打印

parent b1265d4e
...@@ -32,6 +32,7 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa ...@@ -32,6 +32,7 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa
*/ */
public function onReceive(Server $server, int $fd, int $fromId, string $data) public function onReceive(Server $server, int $fd, int $fromId, string $data)
{ {
var_dump('rpc-receive-------');
/** @var \Swoft\Rpc\Server\ServiceDispatcher $dispatcher */ /** @var \Swoft\Rpc\Server\ServiceDispatcher $dispatcher */
$dispatcher = App::getBean('ServiceDispatcher'); $dispatcher = App::getBean('ServiceDispatcher');
$dispatcher->dispatch($server, $fd, $fromId, $data); $dispatcher->dispatch($server, $fd, $fromId, $data);
...@@ -47,7 +48,6 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa ...@@ -47,7 +48,6 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa
*/ */
public function onConnect(Server $server, int $fd, int $from_id) public function onConnect(Server $server, int $fd, int $from_id)
{ {
var_dump('connnect------');
} }
/** /**
...@@ -60,6 +60,5 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa ...@@ -60,6 +60,5 @@ class RpcEventListener implements ReceiveInterface,ConnectInterface,CloseInterfa
*/ */
public function onClose(Server $server, int $fd, int $reactorId) public function onClose(Server $server, int $fd, int $reactorId)
{ {
var_dump('close------');
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment