64 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
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
c94243b838 chore: rm .env.
All checks were successful
Gitea Actions Demo / build (push) Successful in 1m1s
2024-05-03 04:49:06 +00: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
df8cb3bb66 ci: musl target.
All checks were successful
Gitea Actions Demo / build (push) Successful in 2m24s
2023-06-18 12:31:58 +00:00
29c5c85156 ci: musl target.
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m24s
2023-06-18 12:29:03 +00:00
48339cb574 ci: musl target.
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m44s
2023-06-18 19:52:42 +08:00
9c0bd589f8 ci: musl target.
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m26s
2023-06-18 19:39:03 +08:00
8a04618ee7 ci: musl target.
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m43s
2023-06-18 19:36:18 +08:00
b7b060880c ci: musl target.
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m54s
2023-06-18 19:31:08 +08:00
d93a2402e8 ci: musl target.
Some checks failed
Gitea Actions Demo / build (push) Failing after 7s
2023-06-18 19:29:04 +08:00
4e8628be51 ci: dockerfile.
All checks were successful
Gitea Actions Demo / build (push) Successful in 1m16s
2023-05-22 23:45:26 +08:00
3f6abc1e0e ci: build.
All checks were successful
Gitea Actions Demo / build (push) Successful in 3m3s
2023-05-22 15:40:10 +00:00
cbf24f79d2 ci: dockerfile.
All checks were successful
Gitea Actions Demo / build (push) Successful in 1m20s
2023-05-22 23:26:37 +08:00
4b0a08e075 ci: build.
All checks were successful
Gitea Actions Demo / build (push) Successful in 1m30s
2023-05-22 15:17:41 +00:00
e03372e787 ci: build.
Some checks failed
Gitea Actions Demo / build (push) Failing after 41s
2023-05-22 15:13:07 +00:00
688156bc59 ci: dockerfile.
All checks were successful
Gitea Actions Demo / build (push) Successful in 1m52s
2023-05-22 16:00:12 +08:00
e90bed71b9 ci
All checks were successful
Gitea Actions Demo / build (push) Successful in 2m0s
2023-05-22 04:11:34 +00:00
d59f00c638 ci: 合并程序构建和容器镜像构建
Some checks failed
Gitea Actions Demo / build (push) Failing after 40s
2023-05-22 11:22:00 +08:00
9004511aba ci: 合并程序构建和容器镜像构建
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m58s
2023-05-22 10:55:57 +08:00
f58cd9635c ci: 合并程序构建和容器镜像构建
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m58s
2023-05-22 10:48:48 +08:00
727efddc22 ci: 合并程序构建和容器镜像构建
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m59s
2023-05-22 10:37:40 +08:00
4fd3ffa326 ci: 合并程序构建和容器镜像构建
Some checks failed
Gitea Actions Demo / build (push) Failing after 0s
2023-05-22 10:33:50 +08:00
f3ae0a4b3c ci: 合并程序构建和容器镜像构建
Some checks failed
Gitea Actions Demo / build (push) Failing after 42s
2023-05-22 10:30:57 +08:00
c9646bd2c8 ci: use archive
Some checks failed
Gitea Actions Demo / build (push) Failing after 49s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-22 01:09:36 +08:00
6717bb5e2f ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 41s
Gitea Actions Demo / docker (push) Failing after 9s
2023-05-22 01:00:16 +08:00
3bbab92293 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 42s
Gitea Actions Demo / docker (push) Failing after 12s
2023-05-22 00:47:25 +08:00
ff1a718e76 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 38s
Gitea Actions Demo / docker (push) Failing after 12s
2023-05-22 00:40:05 +08:00
e5c4942c17 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 53s
Gitea Actions Demo / docker (push) Failing after 18s
2023-05-22 00:27:40 +08:00
d5e2ec21e6 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 46s
Gitea Actions Demo / docker (push) Failing after 10s
2023-05-22 00:21:35 +08:00
10ce929470 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 53s
Gitea Actions Demo / docker (push) Failing after 10s
2023-05-22 00:04:39 +08:00
2b507867b5 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 46s
Gitea Actions Demo / docker (push) Failing after 1m15s
2023-05-22 00:01:11 +08:00
f6b1adccc6 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 44s
Gitea Actions Demo / docker (push) Failing after 18s
2023-05-21 23:56:17 +08:00
3d9e137c5a ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 2m58s
Gitea Actions Demo / docker (push) Failing after 57s
2023-05-21 23:47:28 +08:00
78b5472b06 ci:
Some checks failed
Gitea Actions Demo / build (push) Successful in 1m15s
Gitea Actions Demo / docker (push) Failing after 4s
2023-05-21 23:43:44 +08:00
62690b92de ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Successful in 3m18s
Gitea Actions Demo / docker (push) Failing after 4s
2023-05-21 23:39:51 +08:00
d8168a9576 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m16s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 23:35:18 +08:00
1a73c662a8 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 1m11s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 23:27:40 +08:00
6e29c71b68 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 5m7s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 23:20:59 +08:00
38dab1df02 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 9s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 23:19:39 +08:00
0d1dfbf589 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 8s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 23:15:45 +08:00
e5d5d38a3e ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 8s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 23:08:43 +08:00
932342f84f ci: cache dependencies.
Some checks are pending
Gitea Actions Demo / docker (push) Has been skipped
Gitea Actions Demo / build (push) Has started running
2023-05-21 17:12:29 +08:00
a1e3c18d13 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Successful in 20m49s
Gitea Actions Demo / docker (push) Failing after 2s
2023-05-21 17:08:19 +08:00
585b4420b0 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 2m16s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 17:02:08 +08:00
e2c3d18d63 ci: cache dependencies.
Some checks failed
Gitea Actions Demo / build (push) Failing after 2m7s
Gitea Actions Demo / docker (push) Has been skipped
2023-05-21 16:56:55 +08:00