Skip to main content

MAX_MESSAGE_SIZE

Constant MAX_MESSAGE_SIZE 

Source
pub const MAX_MESSAGE_SIZE: usize = _ /* 1_073_741_824usize */;
Expand description

Maximum backend message size (1GB) - prevents memory exhaustion from malformed length fields This is more than enough.

The default for MessageReader and for ReplicationConfig::max_message_size.