mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-27 04:54:45 +03:00
e1d30ce5dc
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