tikv / grpc-rs

The gRPC library for Rust built on C Core library and futures
Apache License 2.0
1.81k stars 253 forks source link

Is there a way to set MaxCallRecvMsgSize? #602

Closed bxq2011hust closed 1 year ago

bxq2011hust commented 1 year ago

I use tikv rust client and got this error RpcFailure: 8-RESOURCE_EXHAUSTED Received message larger than max (4563651 vs. 4194304). From here I found there is an MaxCallRecvMsgSize option in grpc, but I can't find a method to set it in grpcio::CallOption

BusyJay commented 1 year ago

Yes, check https://docs.rs/grpcio/latest/grpcio/struct.ChannelBuilder.html#method.max_receive_message_len.

bxq2011hust commented 1 year ago

It works, Thanks very much! @BusyJay