acphal: a reconnect drops messages queued for the old channel #466
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/471"
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?
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T00:46:34Z.
Part 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
Imported from ivall/xcl. Originally posted by ethandepstein-del on 2026-11-24T01:02:14Z.
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.
Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:21:28Z.
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.
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T00:56:51Z.
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.upstream-sync referenced this pull request2026-11-25 03:04:25 +00:00