mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 15:44:18 +08:00
服务器连不上或返回空数据时,自动测速切到延迟最低的可用服务器再试, Python API / CLI / Web API 三入口全部自动生效。 核心改动: - _reconnect.py 新增 select_best_host_sync/async(连接失败 failover) 和 find_working_host_sync/async(空数据逐台实测) - 8 个 client 的 _execute 注入跨主机故障转移(复用 auto_reconnect 开关) - get_market_stat 空数据时按延迟顺序逐台实测找返回数据的服务器 - 新增 _reconnect/_areconnect helper 收敛重建连接副本 - MacClient failover 用 save_best_mac_host(延续 v1.19.4 不污染 best_host) - 顺手修复 test_commands_offline 未使用 import(main CI failure 根因) 测试:925 passed(新增 18 个 failover 测试),ruff/mypy 零新增错误。