php调用go rpc服务返回异常
Closed this issue · 0 comments
FireLustre commented
go rpc 服务
func (s *SearchService) Ping(args string, reply *string) (err error) {
fmt.Println("RPC.Ping")
*reply = "Pong"
return
}
php client 调用
$this->client->invoke('Ping', $params, new InvokeSettings(array('mode' => ResultMode::Normal)));
客户端创建
new HproseClient('tcp://127.0.0.1:5559'), false)
运行结果
response read error