mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-03 06:35:00 +08:00
- Introduced `NewLifetime` to create fresh `Client` instances while maintaining cluster failover state. - Enhanced reconnect failure tracking with `markReconnectFailure` conditions for various connection stages. - Reset reconnect failure counter on successful reconnections to ensure stable client behavior. - Updated tests to verify failover mechanics, subscription handling, and heartbeat recovery scenarios. - Improved lifetime management in `service_home` with reuse of `previousClient` for seamless client transitions.