Skip to main content

EDU_BYTES_LIMIT

Constant EDU_BYTES_LIMIT 

Source
pub(super) const EDU_BYTES_LIMIT: usize = _ /* 9_764_864usize */;
Expand description

Most bytes of serialized EDUs one federation transaction may carry.

A peer refuses a body past its request limit, and refused EDU rows ride along with every later transaction to it, so EDUs past this are dropped instead. The smallest limit Synapse accepts is 200 units of 64 KiB; each PDU fits in one unit and the envelope gets one, leaving the rest for EDUs.