This commit is contained in:
Erik Johnston 2018-07-03 10:11:09 +01:00
parent ca21957b8a
commit bf425e533e

View file

@ -249,11 +249,11 @@ class RoomMemberHandler(object):
then = self.clock.time_msec()
with (yield self.member_limiter.queue(as_id)):
diff = self.clock.time_msec() - then
diff = self.clock.time_msec() - then
if diff > 90 * 1000:
# haproxy would have timed the request out anyway...
raise SynapseError(504, "took to long to process")
if diff > 90 * 1000:
# haproxy would have timed the request out anyway...
raise SynapseError(504, "took to long to process")
with (yield self.member_linearizer.queue(key)):
diff = self.clock.time_msec() - then