6 Commits

Author SHA1 Message Date
b419463bb4 Update dependencies to latest versions
All checks were successful
Gitea Actions Demo / build (push) Successful in 1m12s
- Update rand from 0.8.5 to 0.9.1
- Update tokio-tungstenite from 0.24.0 to 0.27.0
- Update all other dependencies to latest compatible versions
- Fix API breaking change: replace text.into_bytes() with text.as_bytes()
- All tests passing, no functionality changes
2025-06-30 17:55:41 +08:00
2a9e34d345 feat: implement robust retry mechanism for API aggregation service
All checks were successful
Gitea Actions Demo / build (push) Successful in 4m54s
- Add unified retry strategy with exponential backoff and jitter
- Implement health monitoring system for service status tracking
- Enhance WebSocket connection with timeout and heartbeat detection
- Improve WAN polling with connection timeout and error handling
- Add comprehensive test suite for retry mechanisms
- Fix connection hanging issues that prevented proper retry recovery

Key improvements:
- RetryConfig with fast/slow/infinite retry strategies
- HealthMonitor for real-time service status tracking
- Connection timeouts to prevent hanging
- Automatic ping/pong handling for WebSocket
- Consecutive error counting and thresholds
- Detailed logging for better diagnostics

All tests passing: 11 tests (3 unit + 5 integration + 3 lib tests)
2025-06-30 16:49:34 +08:00
7fd8639c5e
chore: update deps.
All checks were successful
Gitea Actions Demo / build (push) Successful in 4m21s
Signed-off-by: Ivan Li <ivanli2048@gmail.com>
2024-11-17 10:00:46 +08:00
ca110fd56d feat: adding OpenWRT WAN port speeds. 2024-03-30 17:47:53 +08:00
c44018e633 feat: 支持通过 udp 转发。 2023-05-14 11:55:43 +08:00
0932cf1283 feat: 支持从 clash api 获取实时连接信息。 2023-05-13 19:01:27 +08:00