client-rust icon indicating copy to clipboard operation
client-rust copied to clipboard

gRPC error: RpcFailure: 8-RESOURCE_EXHAUSTED Received message larger than max (4563651 vs. 4194304)

Open bxq2011hust opened this issue 2 years ago • 1 comments

Is there a way to solve this problem?

bxq2011hust avatar Dec 14 '22 05:12 bxq2011hust

https://github.com/tikv/grpc-rs/issues/602

set it to -1(unlimit) can fix this issue, If you are ok with this fix I can create a PR, @ekexium

        let cb = ChannelBuilder::new(env)
            .keepalive_time(Duration::from_secs(10))
            .keepalive_timeout(Duration::from_secs(3))
            .max_receive_message_len(-1)
            .use_local_subchannel_pool(true);

bxq2011hust avatar Dec 14 '22 06:12 bxq2011hust