Skip to main content

MAX_CONTENT_BYTES

Constant MAX_CONTENT_BYTES 

Source
const MAX_CONTENT_BYTES: usize = 65_536;
Expand description

Largest serialized content of one to-device message.

Synapse refuses larger content with the same limit, measured the same way on canonical JSON. Together with the cap on recipient device IDs it keeps the EDU carrying a message for a remote device far inside a peer’s request limit.