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:
@@ -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
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user