Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bxq2011hust opened this issue Dec 14, 2022 · 1 comment

Comments

@bxq2011hust
Copy link

Is there a way to solve this problem?

@bxq2011hust
Copy link
Author

bxq2011hust commented Dec 14, 2022

tikv/grpc-rs#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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant