From 2e2ac1097e9d4cb32b68e8f91c4604c64dd475da Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 16 Jun 2026 06:22:45 +0100 Subject: [PATCH] Keep Gjallar RUDP health authority stable --- src/Gjallar/Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Gjallar/Program.cs b/src/Gjallar/Program.cs index c611561..1aa77b8 100644 --- a/src/Gjallar/Program.cs +++ b/src/Gjallar/Program.cs @@ -869,7 +869,10 @@ internal sealed class GjallarRenderer : IDisposable { lock (idunnRudpPublishLock) { - idunnRudpPublishStatus = "publish-error"; + if (!string.Equals(idunnRudpPublishStatus, "published", StringComparison.Ordinal)) + { + idunnRudpPublishStatus = "publish-error"; + } idunnRudpPublishError = error.Message; idunnRudpPublishInFlight = false; } @@ -2333,7 +2336,7 @@ internal static class IdunnRudpHealthPublisher ResendDelayMs = 100, }); - if (!transport.ConnectAndWait(Array.Empty(), TimeSpan.FromSeconds(2), TimeSpan.FromMilliseconds(20))) + if (!transport.ConnectAndWait(Array.Empty(), TimeSpan.FromSeconds(5), TimeSpan.FromMilliseconds(20))) { throw new TimeoutException($"timed out connecting Gjallar RUDP health publisher to {endpoint}"); }