From 1657091c5f2b856775d725055c3f04730e4a8fc6 Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sun, 23 Feb 2025 11:03:00 +0000 Subject: [PATCH] BUILDBOT: Add keepalive pings This will avoid closing by the reverse proxy --- buildbot-config/config.py.example | 3 +++ buildbot-config/ui.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/buildbot-config/config.py.example b/buildbot-config/config.py.example index 0be0cf0..3a24c85 100644 --- a/buildbot-config/config.py.example +++ b/buildbot-config/config.py.example @@ -85,6 +85,9 @@ buildbot_url = "https://buildbot.scummvm.org/" # Retention time for data (in weeks) data_retention_weeks = 4 +# Ping interval to keep websocket alive +ws_ping_interval = 0 + change_horizon = 1000 # URL used to download daily builds diff --git a/buildbot-config/ui.py b/buildbot-config/ui.py index e8dabd1..606334a 100644 --- a/buildbot-config/ui.py +++ b/buildbot-config/ui.py @@ -87,6 +87,9 @@ try: except TypeError: www['port'] = "tcp:{0}".format(config.www_port) +if hasattr(config, 'ws_ping_interval'): + www['ws_ping_interval'] = config.ws_ping_interval + if hasattr(config, 'irc') and config.irc: services.append(reporters.IRC( host=config.irc['server'],