From 3e583dd8f6ad48541ff2b5961963d879e0304c4d Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 18 Sep 2026 16:13:31 +0530 Subject: [PATCH] fix(mqtt): lower the pub/sub reconnect cap to 60 attempts The counter resets on a healthy ping, so this caps consecutive failures at ~2 minutes before the delivery bridge gives up. --- app/mqtt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mqtt.php b/app/mqtt.php index fb12d76731..8b88a71a8c 100644 --- a/app/mqtt.php +++ b/app/mqtt.php @@ -196,7 +196,7 @@ $server->error(fn (\Throwable $error, string $action) => Console::error("MQTT {$ $server->onWorkerStart(function (int $workerId) use ($server, $handler, $mqtt, $register): void { go(function () use ($server, $handler, $mqtt, $register): void { $attempts = 0; - while ($attempts < 300) { + while ($attempts < 60) { try { $pubsub = new PubSubPool($register->get('pools')->get('pubsub'));