mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 19:44:09 +01:00
Merge pull request #1023 from matrix-org/rav/event_size
Specify max event size more precisely
This commit is contained in:
commit
5d473ced58
|
|
@ -32,8 +32,11 @@ server-server API.
|
|||
Size limits
|
||||
-----------
|
||||
|
||||
The total size of any event MUST NOT exceed 65 KB. There are additional
|
||||
restrictions on sizes per key:
|
||||
The complete event MUST NOT be larger than 65535 bytes, when formatted as a
|
||||
`PDU for the Server-Server protocol <../server_server/SERVER_RELEASE_LABEL%#pdus>`_,
|
||||
including any signatures, and encoded as `Canonical JSON`_.
|
||||
|
||||
There are additional restrictions on sizes per key:
|
||||
|
||||
- ``sender`` MUST NOT exceed 255 bytes (including domain).
|
||||
- ``room_id`` MUST NOT exceed 255 bytes.
|
||||
|
|
@ -67,3 +70,4 @@ prefixed with ``m.``
|
|||
|
||||
{{m_room_redaction_event}}
|
||||
|
||||
.. _`Canonical JSON`: ../appendices.html#canonical-json
|
||||
|
|
|
|||
Loading…
Reference in a new issue