Repository navigation
acphal: a reconnect drops messages queued for the old channel - #471
Conversation
Channel::connect() left self.messages alone, so a MSG_DISCONNECTED (or stale command acks) queued before a disconnect surfaced on the fresh connection. Clear the queue on connect. Part of xcl-dev#329. Assisted-by: Devin (SWE-2 Flash Medium)
|
Code audit + NVIDIA RTX 5080 test run on ReviewLooks clean — clearing Tested
Not tested
AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above. |
|
Test run of Tested
Review: Clearing the queue on Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Diff check on
Next step to unblock merge: Please rebase onto current |
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