mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
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:
1 parent
675448d48f
commit
3e583dd8f6
1 file changed
+1
-1
+1
-1
@@ -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'));
|
||||
|
||||
|
||||
Reference in new issue
Block a user