mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #7053] [Bug]: Client online status is inaccurate on v3.11.0 #6598
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6598
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sinasurvivalist-tech on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7053
Describe the bug
Since i have upgraded to the latest from v3.10.2, the clients statuses are completely inaccurate, if one client connects and after sometime disconnects, the status won't get updated and it stocks showing the status Online.
I've attached a screenshot regarding the issue
Please fix the client status to be accurate.
How to reproduce the problem
1- upgrade to the latest version
2- connect your clients, analyze their status
3- after they got online check if after disconnecting the status updates.
Expected behavior
Kindly take a look on what happened on the latest version, or maybe somehow i'm the only one having this issue.
Actual behavior
No response
Relevant logs
Screenshots
Check this out, the two online clients based on their speed column has no online connection but the status is stuck on showing them online!
3x-ui version
3.11.0
Xray-core version
26.10.21
How did you install 3x-ui?
Docker / Docker Compose
Operating system
Ubuntu 24.02
Which parts of the panel are affected?
Frontend (UI / panel pages)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Nov 3, 2026):
I can't confirm this yet. The panel's own online-detection code did not change between v3.10.2 and v3.11.0, so either the clients still have an open connection to Xray, or the newer Xray-core bundled with v3.11.0 behaves differently. A few details from you will tell which.
How "Online" is decided. On a core with the online-stats API (Xray 26.10.21 has it), a client counts as online if either of these is true:
GetUsersStatsRPC lists it as having a live connection.The second signal is on purpose. It keeps an idle but still-connected client online even at zero speed (
internal/web/job/xray_traffic_job.go:117-121):So "Online" with an empty speed column means Xray still reports a connection for that user. Once Xray stops listing the user, the panel drops it after the 20 s grace window (
internal/web/service/inbound_node.go:213,const onlineGracePeriodMs int64 = 20000). The panel counts every userGetUsersStatsreturns as online and does not look at the per-IPLastSeenvalues (internal/xray/api.go:1139-1157).What changed between your two versions. The panel-side online path (
process.go,api.go,xray_traffic_job.go,inbound_node.go) is the same in v3.10.2 and v3.11.0. The only change on that path is Xray-core: the Docker image went from Xrayv26.10.10tov26.10.21(commit61b129d5, "feat(xray): update xray-core to v26.10.21 and adapt panel"). I couldn't check here whether the upstream online-tracking behaviour changed between those two Xray builds.I also couldn't open the screenshot. To settle this, please answer as text:
Verdict: Insufficient information
Severity: N/A
Confidence: Medium
Root cause: Not established. In API mode, "online" is the union of traffic deltas and Xray's
GetUsersStatsuser list (internal/web/job/xray_traffic_job.go:122-131). An online client at zero speed is what you see while Xray still reports a connection for that user.Same class: Not applicable
Already fixed: Not applicable. No later commit on main touches the online path.
Duplicate of: None (Related: #4970, #4869 are older online-display reports from before the API-based detection)
Evidence:
git log v3.10.2..v3.11.0shows no change to the online logic ininternal/xray/process.goRefreshLocalOnline(:484-518),internal/xray/api.goGetOnlineUsers(:1128-1159) orxray_traffic_job.go. API-mode onlines date from7bcc5830(in v3.3.1+). The bundled core moved fromv26.10.10tov26.10.21in61b129d5. go.mod pin:701af60772cd→1b1647cd9ddf.Not determined: Whether Xray 26.10.21's
GetUsersStatskeeps listing users after their connections close. Answer 4 (downgrading the core) settles it.This reply was generated automatically; a maintainer may follow up.