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.
This commit is contained in:
ArnabChatterjee20k committed 2026-09-18 16:13:31 +05:30
1 parent 675448d48f
commit 3e583dd8f6
1 file changed
+1 -1
+1 -1
View File
@@ -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'));