From daeda57d68a9e2fcc230f230faa7da4e5d13b33d Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Thu, 3 Aug 2023 00:36:09 +0200
Subject: [PATCH] matrix: Increase max IRC clients to 90, speed up reconnection

We have 100 max connections to Libera.
---
 roles/matrix/templates/irc-bridge.yaml.j2 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/roles/matrix/templates/irc-bridge.yaml.j2 b/roles/matrix/templates/irc-bridge.yaml.j2
index a0e5d0103..b56cf138b 100644
--- a/roles/matrix/templates/irc-bridge.yaml.j2
+++ b/roles/matrix/templates/irc-bridge.yaml.j2
@@ -349,7 +349,7 @@ ircService:
         # reached, the client that spoke the longest time ago will be
         # disconnected and replaced.
         # Optional. Default: 30.
-        maxClients: 50
+        maxClients: 90
         # IPv6 configuration.
         ipv6:
           # Optional. Set to true to force IPv6 for outgoing connections.
@@ -375,7 +375,7 @@ ircService:
         # without sending another message before being disconnected. Use 0 to
         # not apply an idle timeout. This value is ignored if this IRC server is
         # mirroring matrix membership lists to IRC. Default: 172800 (48 hours)
-        idleTimeout: 10800
+        idleTimeout: 0
         # The number of millseconds to wait between consecutive reconnections if a
         # client gets disconnected. Setting to 0 will cause the scheduling to be
         # disabled, i.e. it will be scheduled immediately (with jitter.
@@ -383,7 +383,7 @@ ircService:
         # reconnect for this server will be handled every reconnectIntervalMs ms using
         # a FIFO queue.
         # Default: 5000 (5 seconds)
-        reconnectIntervalMs: 5000
+        reconnectIntervalMs: 2000
         # The number of concurrent reconnects if a user has been disconnected unexpectedly
         # (e.g. a netsplit). You should set this to a reasonably high number so that
         # bridges are not waiting an eternity to reconnect all its clients if
-- 
GitLab