summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-04-26 16:30:42 +0100
committerErik Johnston <erik@matrix.org>2021-04-26 16:35:34 +0100
commita99c692906b04301608e95769666def7bf6c79a1 (patch)
tree003bb07b6b02d39de0075e536dc167735b29eed1 /synapse/api/constants.py
parentNewsfile (diff)
parentReduce memory footprint of caches (diff)
downloadsynapse-a99c692906b04301608e95769666def7bf6c79a1.tar.xz
Merge branch 'erikj/reduce_size_of_cache' into erikj/merge_cache_prs github/erikj/merge_cache_prs erikj/merge_cache_prs
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py

index 31a59bceec..936b6534b4 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py
@@ -17,6 +17,9 @@ """Contains constants from the specification.""" +# the max size of a (canonical-json-encoded) event +MAX_PDU_SIZE = 65536 + # the "depth" field on events is limited to 2**63 - 1 MAX_DEPTH = 2 ** 63 - 1