Files
mirror-3x-ui/internal/web
Sanaei e1d30ce5dc fix(traffic): keep counting past the SQL bind-variable limit
Xray creates a client's counters on its first connection and reports
every one of them on each poll, whether it moved bytes or not. The poll
looked them all up in one IN list, so once more clients had connected
since the core started than a statement can bind (32,766 on SQLite,
65,535 on PostgreSQL) every poll failed: no client was counted and no
quota or expiry was enforced until Xray restarted and its counters
started over.

Two more statements bound one variable per client of an inbound. The
TUIC traffic-id lookup failed the runtime build of a large TUIC inbound.
The node sync's comment lookup failed silently, so a node's snapshot
blanked the hub's comment on every client of a large inbound.

All three read in chunks now.

Refs #7207
2026-11-25 22:00:56 +03:30
..