3x-ui/internal
Aleksey Fedorov 2fab6c3d50
perf(amneziawg): reuse relay buffers and bound the bridge connect time (#7043)
Every TCP connection through a built-in AmneziaWG inbound or outbound
allocated two fresh 32 KiB copy buffers, because io.Copy on a *net.TCPConn
goes through ReadFrom/WriteTo and ignores a caller's buffer. Under a stream
of short connections that is a lot of garbage. The relays now copy with
buffers from a sync.Pool; one side of each pair is always a userspace
netstack connection, so no kernel splice path is given up.

The connect to the local Xray bridge and its SOCKS5 handshake had no time
limit, so a bridge that accepted and never answered pinned the relay's
goroutines and descriptors forever. Both are now bounded at 10 s, and the
deadline is cleared once the handshake succeeds so the relayed connection
keeps its half-close behaviour.
2026-11-13 19:43:03 +01:00
..
amneziawg fix(amneziawg): let an emptied forwardedPorts withdraw a client's forwards 2026-11-01 08:55:38 +01:00
amneziawgkern fix(amneziawg): validate peer subnets before enabling kernel mode (#6965) 2026-11-03 15:52:26 +01:00
amneziawgnet perf(amneziawg): reuse relay buffers and bound the bridge connect time (#7043) 2026-11-13 19:43:03 +01:00
config v3.11.0 2026-10-25 20:08:14 +01:00
crypto/nodetoken fix(nodetoken): stop refusing every node-token key file on Windows 2026-09-27 15:55:42 +02:00
database fix(xray): adopt freedom finalRules delay and logLevel 2026-11-12 19:10:18 +01:00
eventbus chore: refresh dependencies, fix Linux tool tasks, modernize Go idioms 2026-07-25 16:08:09 +02:00
logger fix(logger): reuse the open log rotator when InitLogger runs again 2026-09-27 15:32:20 +02:00
mtproto fix(mtproto): leave clients mtg cannot parse out of the generated config 2026-11-01 13:27:02 +01:00
nodee2e fix(sync): preserve shared client lifecycle across nodes (#7038) 2026-11-02 15:27:44 +01:00
pia chore(build): bump Go toolchain to 1.27.0 2026-08-23 21:57:03 +02:00
sub fix(sub): send the serverDescription tail only to clients that read it (#7108) 2026-11-13 00:24:13 +01:00
testpg test(database): give each package its own schema when tests run on PostgreSQL (#6594) 2026-09-26 21:13:42 +02:00
tuic fix(tuic): bound what unauthenticated connections cost 2026-10-31 15:03:21 +01:00
tunnelmonitor style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
util fix(2fa): accept display forms of the TOTP secret and never panic on a bad one (#7113) 2026-11-13 00:13:13 +01:00
web feat(frontend): confirm before stopping Xray and offer Start when it is stopped (#7104) 2026-11-13 17:03:01 +01:00
xray fix(update): keep Xray-core running until update downloads finish (#7002) 2026-11-02 15:17:01 +01:00