top-think / think-swoole

Swoole extend for thinkphp
Apache License 2.0
462 stars 105 forks source link

php think rpc:interface 运行这个指令报错 #357

Open yunlan1 opened 1 year ago

yunlan1 commented 1 year ago

PHP Fatal error: Uncaught think\swoole\exception\RpcClientException: Error receiving data, errno=54 errmsg=Connection reset by peer in /Users/sky/work/project/game/vendor/topthink/think-swoole/src/concerns/InteractsWithRpcConnector.php:52

'rpc' => [ 'server' => [ 'enable' => true, 'host' => '0.0.0.0', 'port' => 9000, 'worker_num' => swoole_cpu_num(), 'services' => [ \app\rpc\service\UserService::class ], ], 'client' => [], ],