swoole_precess子进程中,调用Grpc的接口,不执行

在子进程中调用grpc接口,没响应, 程序执行到调用就阻塞在那了, 哪位帮忙解决解决

$worker_num =1;//创建的进程数 for($i=0;$i<$worker_num ; $i++){ $process = new \swoole_process(function(\swoole_process $process){ echo PHP_EOL; var_dump('Grpc Begin'); (new PusherSvc())->setCommonMsgNotify([]); //--调用一个grpc接口 var_dump('Grpc End'); \Coroutine }, false, 0); $pid = $process->start(); echo PHP_EOL . $pid;// }

2019-01-10 14:26
0

要回复问题请先登录注册