You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to create a simple grpc bidirectional streaming server and client for transfer messages between services, and i came across the fact that I can't start receiving a response from the server until I explicitly indicate that the message is the last one. Although I found a lot of information that the server can respond to each message gradually.
Example server and client
Server
$http = new Server('0.0.0.0', 50051, SWOOLE_BASE);
$http->set([
"log_level" => SWOOLE_LOG_INFO,
"trace_flags" => 0,
"worker_num" => 1,
"open_http2_protocol" => true
]);
$http->on('workerStart', function (Server $server) {
echo "w s";
});
$http->on('connect', function (Server $server, int $fd, int $reactorId) {
var_dump($server->getClientInfo($fd));
});
$http->on('request', function (Request $request, Response $response) use ($http) {
var_dump($request);
});
$http->start();
I try to create a simple grpc bidirectional streaming server and client for transfer messages between services, and i came across the fact that I can't start receiving a response from the server until I explicitly indicate that the message is the last one. Although I found a lot of information that the server can respond to each message gradually.
Example server and client
Server
Client
Swoole 6
Gcc version 13.2.1 20240309 (Alpine 13.2.1_git20240309)
PHP 8.4.1 (cli)
The text was updated successfully, but these errors were encountered: