11 Commits

Author SHA1 Message Date
e2bd5e9be5 Clean up Chinese comments and add comprehensive English README
- Replace all Chinese comments with English equivalents in:
  - src/health_monitor.rs
  - src/lib.rs
  - tests/integration_test.rs
- Add comprehensive README.md with:
  - Project overview and features
  - Architecture diagram
  - Installation and configuration guide
  - Data format specifications
  - Health monitoring documentation
  - Troubleshooting guide
2025-06-30 17:40:37 +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
bb015bf662 fix: auto reconnection x2. 2024-05-03 04:00:27 +00:00
0bedfb261c fix: auto reconnection. 2024-05-02 05:06:47 +00:00
ca110fd56d feat: adding OpenWRT WAN port speeds. 2024-03-30 17:47:53 +08:00
9a541e1090 feat: retry connect clash. 2023-05-21 14:12:48 +08:00
42d65a559d feat: 使传递给板子的数据结构紧凑。 2023-05-15 23:15:52 +08:00
c44018e633 feat: 支持通过 udp 转发。 2023-05-14 11:55:43 +08:00
0adccb7100 feat: 支持分别计算直连和代理的流量。 2023-05-14 00:34:09 +08:00
0932cf1283 feat: 支持从 clash api 获取实时连接信息。 2023-05-13 19:01:27 +08:00