summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-11-11 10:42:08 +0000
committerErik Johnston <erik@matrix.org>2016-11-11 10:42:08 +0000
commit64038b806cff6fea0a190b3d310225ede8abc5af (patch)
tree3950d968a30e83dd78e5608349771531dfb81a47 /synapse/handlers
parentLimit the number of events that can be created on a given room concurretnly (diff)
downloadsynapse-64038b806cff6fea0a190b3d310225ede8abc5af.tar.xz
Comments
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/message.py2
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