diff options
author | Erik Johnston <erik@matrix.org> | 2016-11-11 10:42:08 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-11-11 10:42:08 +0000 |
commit | 64038b806cff6fea0a190b3d310225ede8abc5af (patch) | |
tree | 3950d968a30e83dd78e5608349771531dfb81a47 /synapse/handlers | |
parent | Limit the number of events that can be created on a given room concurretnly (diff) | |
download | synapse-64038b806cff6fea0a190b3d310225ede8abc5af.tar.xz |
Comments
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/message.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 90519e33e3..4d0515ddfb 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -50,6 +50,8 @@ class MessageHandler(BaseHandler): self.pagination_lock = ReadWriteLock() + # We arbitrarily limit concurrent event creation for a room to 5. + # This is to stop us from diverging history *too* much. self.limiter = Limiter(max_count=5) @defer.inlineCallbacks |