Skip to content

MAX_MESSAGE_SIZE clarification for Clients #2175

@mgrazianoc

Description

@mgrazianoc

According to the official documentation 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions