mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-10-06 05:18:26 -04:00
limit total timeout for get_missing_events to 10s
This commit is contained in:
parent
899a3a1268
commit
555d702e34
3 changed files with 11 additions and 3 deletions
|
@ -386,7 +386,7 @@ class TransportLayerClient(object):
|
|||
@defer.inlineCallbacks
|
||||
@log_function
|
||||
def get_missing_events(self, destination, room_id, earliest_events,
|
||||
latest_events, limit, min_depth):
|
||||
latest_events, limit, min_depth, timeout):
|
||||
path = PREFIX + "/get_missing_events/%s" % (room_id,)
|
||||
|
||||
content = yield self.client.post_json(
|
||||
|
@ -397,7 +397,8 @@ class TransportLayerClient(object):
|
|||
"min_depth": int(min_depth),
|
||||
"earliest_events": earliest_events,
|
||||
"latest_events": latest_events,
|
||||
}
|
||||
},
|
||||
timeout=timeout,
|
||||
)
|
||||
|
||||
defer.returnValue(content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue