grpc / grpc/grpc-rust

MAX_MESSAGE_SIZE clarification for Clients

Open
#2,175 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

According to the official [documentation](https://docs.rs/tonic/0.12.3/tonic/index.html#max-message-size) on version `0.12.3`, is states:

> Currently, both servers and clients can be configured to set the max message encoding and decoding size. This will ensure that an incoming gRPC message will not exhaust the systems memory. By default, the decoding message limit is 4MB and the encoding limit is usize::MAX.

On the server side, we can configure these limits directly within the service, using `max_decoding_message_size` and `max_encoding_message_size`.

However, I don’t see any documented examples of how to configure these limits for the client side, nor can I find any references in the source code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.