Update WebSocket connection handling in MultiChatDialog: Change raceLimit to 1 to prevent duplicate daemon sockets and ensure only one connection attempt in parallel.

This commit is contained in:
Torsten Schulz (local)
2026-03-04 22:50:54 +01:00
parent 947d3d0694
commit 1bccee3429

View File

@@ -321,8 +321,8 @@ export default {
happyDelayMs: 40, happyDelayMs: 40,
// Join fallback delay if token is slow to arrive // Join fallback delay if token is slow to arrive
joinFallbackDelayMs: 120, joinFallbackDelayMs: 120,
// Limit how many parallel WS candidates to race (prevents server socket buildup) // Default: only one connection attempt in parallel (prevents duplicate daemon sockets)
raceLimit: 3 raceLimit: 1
}; };
}, },
// Hinweis: Öffnen erfolgt über methods.open(), damit Parent per Ref aufrufen kann // Hinweis: Öffnen erfolgt über methods.open(), damit Parent per Ref aufrufen kann
@@ -604,7 +604,7 @@ export default {
const n = parseInt(ls, 10); const n = parseInt(ls, 10);
if (!isNaN(n) && n > 0) return Math.min(n, 6); if (!isNaN(n) && n > 0) return Math.min(n, 6);
} catch (_) { } } catch (_) { }
return this.raceLimit || 3; return this.raceLimit || 1;
}, },
spawnCandidate(url, protocols) { spawnCandidate(url, protocols) {
if (!this.opened) return; if (!this.opened) return;