Skip to content

brpc作为grpc客户端访问apisix的时候报错'remote_window_left is not enough' #3142

@jiangdongzi

Description

@jiangdongzi

Describe the bug
root@f9269de0e3d8:~/github/brpc/example/grpc_c++/build# ./client --protocol=h2:grpc --server=127.0.0.1:9080 --payload_size=200012 --max_retry=0 --timeout_ms=1000 --h2_client_stream_window_size=40000000 --h2_client_connection_window_size=50000000 I1107 07:58:44.008261 77805 0 /root/github/brpc/src/brpc/socket.cpp:2865] GetAgentSocket: 1 W1107 07:58:44.010063 77812 4294969089 /root/github/brpc/src/brpc/policy/http_rpc_protocol.cpp:397] HTTP response status code: 500 E1107 07:58:44.010094 77812 4294969089 /root/github/brpc/src/brpc/controller.cpp:606] RPC failed: [E1010]HTTP/2.0 500 Internal Server Error code: 1010 W1107 07:58:44.010146 77805 0 /root/github/brpc/example/grpc_c++/client.cpp:89] [E1010]HTTP/2.0 500 Internal Server Error E1107 07:58:45.010367 77805 0 /root/github/brpc/src/brpc/controller.cpp:606] RPC failed: [E2004]remote_window_left is not enough, data_size=200021 code: 2004 W1107 07:58:45.010465 77805 0 /root/github/brpc/example/grpc_c++/client.cpp:89] [E2004]remote_window_left is not enough, data_size=200021 E1107 07:58:46.010671 77805 0 /root/github/brpc/src/brpc/controller.cpp:606] RPC failed: [E2004]remote_window_left is not enough, data_size=200021 code: 2004 W1107 07:58:46.010768 77805 0 /root/github/brpc/example/grpc_c++/client.cpp:89] [E2004]remote_window_left is not enough, data_size=200021

使用grpcurl就没有这个问题

To Reproduce
向apisix发送大于100k的数据包

Expected behavior
正常返回数据

Versions
OS: ubuntu
Compiler: g++ 13.3.0
brpc:
protobuf:

Additional context/screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions