Retry peer reconnect every 5s until back online
Release rolling / release (push) Has been cancelled

Replace exponential backoff and the 12-attempt cap with a fixed 5s
retry loop that keeps dialing after unexpected disconnects. Throttle
toasts so the UI is not spammed while the offline banner stays up.
This commit is contained in:
Raven Scott
2026-07-11 17:19:09 -04:00
parent 3fe050d7a6
commit 54c09b5eab
4 changed files with 51 additions and 11 deletions
+7 -1
View File
@@ -22,7 +22,13 @@ export const CONFIG = {
// Connection
CONNECTION: {
TIMEOUT_MS: 30000, // Connection timeout
RECONNECT_DELAY_MS: 5000, // Reconnect delay
/** Fixed delay between automatic peer reconnect attempts */
RECONNECT_DELAY_MS: 5000,
/**
* Max automatic reconnect attempts (0 / Infinity = never give up).
* Peers keep dialing every RECONNECT_DELAY_MS until back online or removed.
*/
RECONNECT_MAX_ATTEMPTS: 0,
HEALTH_CHECK_INTERVAL_MS: 10000, // Health check interval
},