Xray-core/common
yuhan6665 fa5d7a255b
Least load balancer (#2999)
* v5: Health Check & LeastLoad Strategy (rebased from 2c5a71490368500a982018a74a6d519c7e121816)

Some changes will be necessary to integrate it into V2Ray

* Update proto

* parse duration conf with time.Parse()

* moving health ping to observatory as a standalone component

* moving health ping to observatory as a standalone component: auto generated file

* add initialization for health ping

* incorporate changes in router implementation

* support principle target output

* add v4 json support for BurstObservatory & fix balancer reference

* update API command

* remove cancelled API

* return zero length value when observer is not found

* remove duplicated targeted dispatch

* adjust test with updated structure

* bug fix for observer

* fix strategy selector

* fix strategy least load

* Fix ticker usage

ticker.Close does not close ticker.C

* feat: Replace default Health Ping URL to HTTPS (#1991)

* fix selectLeastLoad() returns wrong number of nodes (#2083)

* Test: fix leastload strategy unit test

* fix(router): panic caused by concurrent map read and write (#2678)

* Clean up code

---------

Co-authored-by: Jebbs <qjebbs@gmail.com>
Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
Co-authored-by: 世界 <i@sekai.icu>
Co-authored-by: Bernd Eichelberger <46166740+4-FLOSS-Free-Libre-Open-Source-Software@users.noreply.github.com>
Co-authored-by: 秋のかえで <autmaple@protonmail.com>
Co-authored-by: Rinka <kujourinka@gmail.com>
2024-02-17 22:51:37 -05:00
..
antireplay chore fixed (#897) 2022-01-12 21:51:47 -05:00
bitmask v1.1.0 2020-12-04 09:36:16 +08:00
buf Unify environment var readers 2023-10-29 15:16:57 -04:00
bytespool v1.0.0 2020-11-25 19:01:53 +08:00
cache chore fixed (#897) 2022-01-12 21:51:47 -05:00
cmdarg v1.0.0 2020-11-25 19:01:53 +08:00
crypto fix: Replace "math/rand" with "crypto/rand" in padding generation(#2032) (#1337) 2022-11-14 09:24:24 -05:00
dice v1.1.0 2020-12-04 09:36:16 +08:00
drain Unified drain support for vmess and shadowsocks (#791) 2021-12-14 19:27:31 -05:00
errors fix: dns empty response 2023-05-01 10:19:50 -04:00
log Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
mux XUDP practice: MUST check the flag first & Add more comments 2023-04-16 21:15:27 +00:00
net Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
ocsp common/ocsp: fix dropped error 2023-12-09 19:52:50 -05:00
peer v1.0.0 2020-11-25 19:01:53 +08:00
platform Unify environment var readers 2023-10-29 15:16:57 -04:00
protocol Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
reflect Remove slices dependency. (#2930) 2024-01-11 10:34:26 -05:00
retry Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
serial Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
session Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
signal vformat supports multi-core processing (#757) 2021-10-12 15:29:22 +00:00
singbridge common/singbridge: fix dropped context 2024-01-02 19:56:14 -05:00
strmatcher fix(common): strmatcher match domain safety 2023-08-24 11:06:08 -04:00
task XUDP protocol: Add Global ID & UoT Migration 2023-04-06 10:21:35 +00:00
units Add statistics in conn testing 2021-12-14 20:15:05 -05:00
uuid Reformat code 2022-05-18 15:29:01 +08:00
xudp Delay XUDP Basekey read 2023-12-03 22:10:10 -05:00
common_test.go v1.1.0 2020-12-04 09:36:16 +08:00
common.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00
interfaces.go v1.1.0 2020-12-04 09:36:16 +08:00
type_test.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00
type.go Style: format code by gofumpt (#761) 2021-10-20 00:57:14 +08:00