wwqgtxx
aa51b9faba
chore: replace using internal batch package to x/sync/errgroup
...
In the original batch implementation, the Go() method will always start a new goroutine and then wait for the concurrency limit, which is unnecessary for the current code. x/sync/errgroup will block Go() until the concurrency limit is met, which can effectively reduce memory usage.
In addition, the original batch always saves the return value of Go(), but it is not used in the current code, which will also waste a lot of memory space in high concurrency scenarios.
2025-04-28 10:28:45 +08:00
wwqgtxx
3e2c9ce821
chore: cleanup patch code
2024-08-27 11:04:42 +08:00
wwqgtxx
1bc3c16b59
feat: add PROCESS-NAME-REGEX
and PROCESS-PATH-REGEX
2024-05-15 10:44:56 +08:00
Larvan2
d2a5376cb8
revert: "modify default url"
...
This reverts commit 3d643cb95a
.
2024-02-24 13:50:53 +08:00
xishang0128
1025101954
chore: add timeout
option
2024-01-24 12:45:35 +08:00
xishang0128
3d643cb95a
chore: modify default url
2023-12-31 07:39:17 +08:00
Larvan2
ac381736a5
chore: restore function name to AliveForTestUrl
2023-12-22 21:18:17 +08:00
tommytag
f63acc0202
healthcheck latency of the provider is also stored in the extra, without compromising rest api compatibility
2023-12-06 17:11:24 +08:00
wzdnzd
cc6429722a
return expected status through Rest API and clean useless code
2023-12-01 23:16:55 +08:00
Steve Johnson
9e96d70840
feat: share more code from android branch
2023-11-17 01:21:02 +08:00
wwqgtxx
17c9d507be
chore: hello mihomo
2023-11-03 21:58:21 +08:00
wwqgtxx
7ed25ddc74
chore: better atomic using
2023-10-10 21:28:46 +08:00
wzdnzd
767aa182b9
When testing the delay through REST API, determine whether to store the delay data based on certain conditions instead of discarding it directly ( #609 )
2023-06-07 11:04:03 +08:00
wzdnzd
3c1f9a9953
ProxyProvider health check also supports specifying expected status ( #600 )
...
Co-authored-by: wwqgtxx <wwqgtxx@gmail.com>
2023-06-04 14:00:24 +08:00
wzdnzd
3ef81afc76
[Feature] Proxy stores delay data of different URLs. And supports specifying different test URLs and expected statue by group ( #588 )
...
Co-authored-by: Larvan2 <78135608+Larvan2@users.noreply.github.com>
Co-authored-by: wwqgtxx <wwqgtxx@gmail.com>
2023-06-04 11:51:30 +08:00
wwqgtxx
40da1911d9
chore: using sync/atomic replace uber/atomic
2023-04-22 15:37:57 +08:00
wwqgtxx
f7610ce2ad
chore: better uuid using
2023-03-15 10:10:03 +08:00
Skyxim
88116d9032
fix: optimize health check
2023-03-14 20:10:52 +08:00
H1JK
ae966833a4
chore: Generate UUID from fastrand
2023-03-05 11:00:14 +08:00
wwqgtxx
a7aa5fd523
adjust: add some log for healthcheck debug
2022-10-31 16:04:50 +08:00
wwqgtxx
b9d8b69889
fix: lazy check
2022-10-30 23:08:18 +08:00
Skyxim
4ba34ce672
chore: healthcheck only once check at same time
2022-06-25 08:53:04 +08:00
adlyq
ed17a1bf23
fix: group filter touch provider
2022-06-07 17:19:25 +08:00
yaling888
4fd7d0f707
Chore: use generics as possible
2022-04-25 13:18:30 +08:00
yaling888
7e2c6e5188
Chore: adjust HealthCheck at first check
2022-03-28 00:46:44 +08:00
Dreamacro
6a661bff0c
Migration: go 1.18
2022-03-16 12:10:13 +08:00
Dreamacro
09697b7679
Chore: adjust batch
2021-07-23 00:30:23 +08:00
Dreamacro
507ba16065
Fix: incorrect use batch
2021-07-21 23:53:31 +08:00
Dreamacro
8d37220566
Fix: limit concurrency number of provider health check
2021-07-21 17:01:15 +08:00
Dreamacro
045edc188c
Style: code style
2021-06-10 14:05:56 +08:00