summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-11-29 15:50:04 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-02-13 20:54:34 +0000
commiteca7ece93f419f8381d63d44d0b605f2f7cf25dc (patch)
tree990c1a36a0b8094e8b43a186c2042ff55d9c3f9e /synapse/handlers
parentActually fix exceptions (diff)
downloadsynapse-eca7ece93f419f8381d63d44d0b605f2f7cf25dc.tar.xz
Handle slow/lossy connections better when sending transactions
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/federation.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py

index 7dbb9d49fb..15a04bb777 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py
@@ -304,20 +304,20 @@ class FederationHandler(BaseHandler): # but there is an interaction with min_depth that I'm not really # following. - if sent_to_us_directly: - logger.warn( - "[%s %s] Rejecting: failed to fetch %d prev events: %s", - room_id, event_id, len(prevs - seen), shortstr(prevs - seen) - ) - raise FederationError( - "ERROR", - 403, - ( - "Your server isn't divulging details about prev_events " - "referenced in this event." - ), - affected=pdu.event_id, - ) + # if sent_to_us_directly: + # logger.warn( + # "[%s %s] Rejecting: failed to fetch %d prev events: %s", + # room_id, event_id, len(prevs - seen), shortstr(prevs - seen) + # ) + # raise FederationError( + # "ERROR", + # 403, + # ( + # "Your server isn't divulging details about prev_events " + # "referenced in this event." + # ), + # affected=pdu.event_id, + # ) # Calculate the state after each of the previous events, and # resolve them to find the correct state at the current event. @@ -506,9 +506,9 @@ class FederationHandler(BaseHandler): room_id, earliest_events_ids=list(latest), latest_events=[pdu], - limit=10, + limit=5, min_depth=min_depth, - timeout=60000, + timeout=15000, ) logger.info(