Skip to content
Snippets Groups Projects
Commit f8e8ec01 authored by Erik Johnston's avatar Erik Johnston
Browse files

Note why we're limiting concurrent event sends

parent e5082494
No related branches found
No related tags found
No related merge requests found
......@@ -557,6 +557,11 @@ class EventCreationHandler(object):
See self.create_event and self.send_nonmember_event.
"""
# We limit the number of concurrent event sends in a room so that we
# don't fork the DAG too much. If we don't limit then we can end up in
# a situation where event persistence can't keep up, causing
# extremities to pile up, which in turn leads to state resolution
# taking longer.
with (yield self.limiter.queue(event_dict["room_id"])):
event, context = yield self.create_event(
requester,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment