Xray-core/transport/internet
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
..
domainsocket Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
grpc Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
headers Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
http Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
kcp Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
quic Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
reality Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
stat Fix: CounterConnection with ReadV/WriteV (#720) 2021-09-20 20:11:21 +08:00
tagged Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00
tcp Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
tls Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
udp Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
websocket Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
config.go 统一 `domainStrategy` 行为. (#2720) 2023-11-12 16:37:02 -05:00
config.pb.go Least load balancer (#2999) 2024-02-17 22:51:37 -05:00
config.proto 统一 `domainStrategy` 行为. (#2720) 2023-11-12 16:37:02 -05:00
dialer.go Add DestIpAddress() in Dialer interface 2023-12-18 18:36:56 -05:00
dialer_test.go Reformat code 2022-05-18 15:29:01 +08:00
errors.generated.go v1.1.0 2020-12-04 09:36:16 +08:00
filelocker.go v1.0.0 2020-11-25 19:01:53 +08:00
filelocker_other.go Style: format code 2021-09-20 21:00:55 +08:00
filelocker_windows.go v1.0.0 2020-11-25 19:01:53 +08:00
header.go v1.1.0 2020-12-04 09:36:16 +08:00
header_test.go v1.1.0 2020-12-04 09:36:16 +08:00
internet.go v1.1.0 2020-12-04 09:36:16 +08:00
memory_settings.go v1.0.0 2020-11-25 19:01:53 +08:00
sockopt.go Fix: TFO AsIs bug (#452) 2021-03-30 16:42:02 +00:00
sockopt_darwin.go add bindAddr for darwin 2023-10-16 10:24:28 -04:00
sockopt_freebsd.go Add TCPKeepAliveIdle in Sockopt option (#1166) 2022-07-31 09:55:40 -04:00
sockopt_linux.go Added tcp fragmentation for freedom outbound (#2021) 2023-05-22 02:59:58 +00:00
sockopt_linux_test.go v1.1.0 2020-12-04 09:36:16 +08:00
sockopt_other.go Remove dragonfly build 2023-11-12 14:30:50 -05:00
sockopt_test.go Reformat code 2022-05-18 15:29:01 +08:00
sockopt_windows.go Enable interface setting for socketopt under Windows (#2819) 2023-12-17 17:56:15 -05:00
system_dialer.go Temporarily turn off sockopt for UDP on windows 2024-02-17 13:22:39 -05:00
system_listener.go Add `tcpMptcp` to `sockopt` (#2520) 2023-09-07 17:32:27 +00:00
system_listener_test.go Update dependencies 2023-04-23 19:32:07 +08:00
tcp_hub.go Fix some tests and format code (#830) 2021-12-14 19:28:47 -05:00