Bound pipeline cache flush waits at shutdown #114

Manually merged
github merged 1 commit from github-bot/gh-114 into main 2026-12-02 01:45:48 +00:00 AGit
Owner

@⁠aycow on GitHub · 2026-12-01 21:17 UTC · original
aycow:fix/pipeline-writer-shutdown-timeout → main · +89 −8 · 4 files · 1 commits · merged 2026-12-02 01:43 UTC

Problem

The native pipeline cache writer introduced in #100 uses a bounded queue. At shutdown, a blocking send can wait indefinitely for space before the 10-second acknowledgment timeout starts. The pipeline library writer also blocks on both the send and the acknowledgment.

Change

Give each writer one 10-second budget covering both queue admission and acknowledgment. The flush marker still follows already queued writes. Shutdown logs a warning if either writer stalls or disconnects. Outstanding cache writes may be lost on exit and can be regenerated on a later run.

Verification

  • cargo check --locked -p victory passed.
  • The pipeline unit suite passed 28 tests, including three cases covering queued writes, a saturated queue, and a missing acknowledgment.
  • The mesh and depth-bounds library-reload tests failed with the same assertions on clean upstream main (f7f0360).
  • Validation used the Windows build and synthetic queue tests. No game session was run under Wine.
**@⁠aycow** on GitHub · 2026-12-01 21:17 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/114) `aycow:fix/pipeline-writer-shutdown-timeout` → `main` · +89 −8 · 4 files · 1 commits · merged 2026-12-02 01:43 UTC ## Problem The native pipeline cache writer introduced in #100 uses a bounded queue. At shutdown, a blocking send can wait indefinitely for space before the 10-second acknowledgment timeout starts. The pipeline library writer also blocks on both the send and the acknowledgment. ## Change Give each writer one 10-second budget covering both queue admission and acknowledgment. The flush marker still follows already queued writes. Shutdown logs a warning if either writer stalls or disconnects. Outstanding cache writes may be lost on exit and can be regenerated on a later run. ## Verification - `cargo check --locked -p victory` passed. - The pipeline unit suite passed 28 tests, including three cases covering queued writes, a saturated queue, and a missing acknowledgment. - The mesh and depth-bounds library-reload tests failed with the same assertions on clean upstream `main` (`f7f0360`). - Validation used the Windows build and synthetic queue tests. No game session was run under Wine.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 21:20:32 +00:00
github-bot referenced this pull request from a commit 2026-12-02 01:45:44 +00:00
github manually merged commit 470fa8d474 into main 2026-12-02 01:45:48 +00:00
github-bot referenced this pull request from a commit 2026-12-04 19:05:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.