Keep offline peers on Fleet and add max reconnect tries setting
Release rolling / release (push) Successful in 8m50s

Fleet builds a roster from configured peers so hosts stay visible when
they drop (online / reconnecting / failed / offline). Settings → Behavior
adds max reconnect tries (1–8 or unlimited, default 8) wired into
ConnectionManager, with Retry connect to redial after the budget is spent.
This commit is contained in:
Raven Scott
2026-07-16 16:37:19 -04:00
parent 758b8b13f7
commit f72a1d0a41
8 changed files with 469 additions and 56 deletions
+3 -2
View File
@@ -25,8 +25,9 @@ export const CONFIG = {
/** 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.
* Default max automatic reconnect attempts when Settings has no override.
* 0 = unlimited. Runtime/UI caps at 8 (see Settings → Behavior).
* Client default preference is 8 tries via peardock.settings.v1.
*/
RECONNECT_MAX_ATTEMPTS: 0,
HEALTH_CHECK_INTERVAL_MS: 10000, // Health check interval