acphal: a reconnect drops messages queued for the old channel #471
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!471
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/471/head"
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?
@DavidM1911 on GitHub · 2026-11-24 00:46 UTC · original
DavidM1911:acphal-connect-clear→main· +15 −0 · 1 files · 1 commits · merged 2026-11-25 01:07 UTCPart of #329 (item 2).
Channel::connect()leftself.messagesalone, so aMSG_DISCONNECTED(or stale command acks) queued before adisconnect()surfaced on the fresh connection — a title that disconnects and reconnects immediately would pop a disconnect for a channel that is up.connect()now clears the queue.What is in it
crates/xcl/src/hle/acphal.rs:self.messages.clear()inChannel::connect(); a test connects, disconnects without popping, reconnects, and checks the nextpopis not the staleMSG_DISCONNECTED.Tested
x86_64-pc-windows-msvc:cargo test -p xcl --lib acphal: 8 passed, 0 failedcargo test --workspace -- --test-threads=4: 677 passed, 0 failed, 41 ignoredscripts/smoke.ps1 -Seconds 60,cargo build --release -p xcl:main
a6f5f7a(same run as reported on the sibling #329 PRs):this PR's head
cf6157a:Not tested
AI use
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@mastrr9 on GitHub · 2026-11-24 01:02 UTC · original
Code audit + NVIDIA RTX 5080 test run on
cf6157af0953779c3a875337c0f098289ab72b9c(part of #329):Review
Looks clean — clearing
self.messagesinChannel::connect()prevents staleMSG_DISCONNECTEDor command completions from leaking across a reconnect. (Small note: this and #468 both touchChannel::connect, so whichever merges second will need a trivial rebase.)Tested
rustc 1.100.0(MSVC), debug build.cargo build --workspace && cargo test --workspace -- --test-threads=4: 677 passed, 0 failed, 41 ignored.hle::acphal::tests::reconnect_drops_messages_queued_for_the_old_channel: passed.SKIPPEDGPU tests (2, wave32-only adapter):gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64.Not tested
scripts/smoke.ps1run (test suite only).AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.
@MesshM on GitHub · 2026-11-24 04:21 UTC · original
Test run of
cf6157af0953779c3a875337c0f098289ab72b9con AMD RDNA4. I merged it onto currentmainf4ce27clocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 702 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 661 passed, 0 failed, 21 ignoredSKIPPED;reconnect_drops_messages_queued_for_the_old_channelpasses.Review: Clearing the queue on
connect()keeps a staleMSG_DISCONNECTEDfrom surfacing on the new channel. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@raylitebull on GitHub · 2026-11-25 00:56 UTC · original
Diff check on
cf6157a:self.messagesinChannel::connect()cleanly prevents staleMSG_DISCONNECTEDor prior-channel messages from surfacing after a reconnect.RX 9060 XT) and NVIDIA (RTX 5080), withPR descriptionpassing.Next step to unblock merge: Please rebase onto current
mainso CI runsBuild and test (Windows, no GPU)on the head.