summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-07-20 12:43:23 +0100
committerRichard van der Hoff <richard@matrix.org>2018-07-20 12:50:27 +0100
commit8462c26485fb4f19fc52accc05870c0ea4c8eb6a (patch)
treebcf4724005702d8798fbda90439439ff4e9c3693 /synapse/handlers
parentAdd a sleep to the Limiter to fix stack overflows. (diff)
downloadsynapse-8462c26485fb4f19fc52accc05870c0ea4c8eb6a.tar.xz
Improvements to the Limiter
* give them names, to improve logging
* use a deque rather than a list for efficiency
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py

index a39b852ceb..8c12c6990f 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py
@@ -427,7 +427,7 @@ class EventCreationHandler(object): # 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) + self.limiter = Limiter(max_count=5, name="room_event_creation_limit") self.action_generator = hs.get_action_generator()