summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorhera <matrix@template.upcloud.com>2018-02-28 00:35:03 +0000
committerhera <matrix@template.upcloud.com>2018-02-28 00:35:03 +0000
commit889803a78ed724cae8435d7afe906cca74ad8bbb (patch)
tree0f251e0f57a48672c115c329ffa4f4e4fe6f2685 /synapse
parentActuall set cache factors in workers (diff)
downloadsynapse-889803a78ed724cae8435d7afe906cca74ad8bbb.tar.xz
increase sync cache to 2 minutes
to give synchrotrons being hammered by repeating initial /syncs to get more chance to actually complete and avoid a DoS
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index c95ca2ade8..dc78e90ef0 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -169,7 +169,7 @@ class SyncHandler(object):
         self.presence_handler = hs.get_presence_handler()
         self.event_sources = hs.get_event_sources()
         self.clock = hs.get_clock()
-        self.response_cache = ResponseCache(hs)
+        self.response_cache = ResponseCache(hs, timeout_ms=2*60*1000)
         self.state = hs.get_state_handler()
 
     def wait_for_sync_for_user(self, sync_config, since_token=None, timeout=0,