grpc
grpc copied to clipboard
💎 Grpc client based on Swoole Coroutine
创建客户端请求python GRPC服务端的时候,请求到了数据,但是协程一直没有停掉,但是请求php的服务端缺没有问题
解析复杂grpc对象报错PHP Fatal error: Uncaught Google\Protobuf\Internal\GPBDecodeException: Error occurred during parsing: Unexpected wire type. propto定义大概如下: service UserService { rpc GetUserList (UserListRequest) returns (UserListReply) {} } message User { int64 id = 1;...
According to Openswoole documentation, ``` capacity Set the channel max capacity, must be greater than or equal to 1. ``` Ref link - https://openswoole.com/docs/modules/swoole-coroutine-channel-construct Which causes grpc clients to break...
显示: Fatal error: Uncaught Swoole\Error: Socket#33 has already been bound to another coroutine#852, writing of the same socket in coroutine#853 at the same time is not allowed in
文件路径: src/Grpc/Helloworld 建议保持包的简洁性,如果使用该包作为客户端时,采用grpc-go包的`helloworld.proto`时会产生冲突
Does it makes sense to provide or implement a connection pool for clients or is this already somehow achieved with the current implementation? So is it reusing connections?
## 问题 客户端复用 ClientConn 后,无法再次调用 RPC 方法成功 ## server 直接使用 [greeter_server.php](https://github.com/swoole/grpc-client/blob/master/examples/grpc/greeter_server.php) ## client 直接改造 [greeter_client.go](https://github.com/swoole/grpc-client/blob/master/examples/grpc/helloworld/greeter_client.go),如下: ``` package main import ( "log" "os" "golang.org/x/net/context" "google.golang.org/grpc" pb "google.golang.org/grpc/examples/helloworld/helloworld" ) const ( address...
这个swoole grpc server支持streaming call吗? 有没有example?
I want to use swoole grpc for https://github.com/chatie/grpc. chatie/grpc server npm run example:server Does streammingCall work well?
## PHP 版本 ``` $ php -v PHP 7.2.11 (cli) (built: Oct 21 2018 18:28:44) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018...