From a4f3ca48b5250a1c2c4de8a363f69bbeb0adeefd Mon Sep 17 00:00:00 2001
From: Neil Johnson <neil@matrix.org>
Date: Wed, 25 Sep 2019 17:27:35 +0100
Subject: [PATCH] Enable cleaning up extremities with dummy events by default
 to prevent undue build up of forward extremities. (#5884)

---
 changelog.d/5884.feature | 1 +
 synapse/config/server.py | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)
 create mode 100644 changelog.d/5884.feature

diff --git a/changelog.d/5884.feature b/changelog.d/5884.feature
new file mode 100644
index 0000000000..bfd0489392
--- /dev/null
+++ b/changelog.d/5884.feature
@@ -0,0 +1 @@
+Enable cleaning up extremities with dummy events by default to prevent undue build up of forward extremities.
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 419787a89c..3a7a49bc91 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -355,10 +355,8 @@ class ServerConfig(Config):
 
         _check_resource_config(self.listeners)
 
-        # An experimental option to try and periodically clean up extremities
-        # by sending dummy events.
         self.cleanup_extremities_with_dummy_events = config.get(
-            "cleanup_extremities_with_dummy_events", False
+            "cleanup_extremities_with_dummy_events", True
         )
 
     def has_tls_listener(self):
-- 
GitLab