3x-ui/internal
Sanaei 510bee2f30 fix(traffic): serialize inline traffic writes with the writer
submitTrafficWrite falls back to running fn inline when the serial
writer is not running (before StartTrafficWriter, during the shutdown
drain, in CLI paths and tests). That path took no lock, so an inline
write could run beside the draining writer or another inline write,
breaking the single-writer invariant that guards the Postgres deadlock.

One visible effect: ResetTrafficByEmail fans out one reset per inbound.
Run side by side, the second reset read the record still disabled but
the traffic already zeroed, judged the client operator-disabled and
saved enable=false over the first reset's restore
(TestResetTrafficByEmail_ReenablesEveryInboundOfTheClient failed ~25%).

safeApply now holds a package mutex, so every write path is serialized.
2026-11-06 18:53:42 +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 fix(amneziawgnet): stop tests binding fixed ports in the ephemeral range 2026-11-01 15:14:49 +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(mtproto): leave clients mtg cannot parse out of the generated config 2026-11-01 13:27:02 +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): restore TUIC links in subscriptions after v3.11.0 (#6963) 2026-11-02 15:27:49 +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(link): keep IPv6 brackets in imported wireguard endpoints (#6976) 2026-11-03 15:52:09 +01:00
web fix(traffic): serialize inline traffic writes with the writer 2026-11-06 18:53:42 +01:00
xray fix(update): keep Xray-core running until update downloads finish (#7002) 2026-11-02 15:17:01 +01:00