|
| 1 | +--- |
| 2 | +id: RUST-BUG-081 |
| 3 | +title: Stop Rust live-wire downloads after first completion |
| 4 | +status: done |
| 5 | +priority: Minor |
| 6 | +category: bug |
| 7 | +workflow: local |
| 8 | +--- |
| 9 | + |
| 10 | +# RUST-BUG-081: Stop Rust live-wire downloads after first completion |
| 11 | + |
| 12 | +## Problem |
| 13 | + |
| 14 | +The Rust hide.me live-wire harness documents that the download phase passes as |
| 15 | +soon as at least one started transfer completes, and the pass status uses the |
| 16 | +same criterion. The implementation still waited until every started transfer |
| 17 | +completed or the full download timeout elapsed. |
| 18 | + |
| 19 | +During `rust-hideme-20260619T021252Z`, obfuscation-on completed many transfers |
| 20 | +early and obfuscation-off completed one transfer early, but each pass kept |
| 21 | +running until the configured download window expired. That wastes public-network |
| 22 | +live-test time and makes the "check and intervene" loop slower without adding a |
| 23 | +stronger pass condition. |
| 24 | + |
| 25 | +## Acceptance |
| 26 | + |
| 27 | +- [x] The download loop returns once any started transfer completes. |
| 28 | +- [x] The reported completion count, bytes, progress, and source counts still |
| 29 | + come from the final observed snapshot. |
| 30 | +- [x] Existing packet-diagnostic source-exchange evidence still runs after the |
| 31 | + daemon stops. |
| 32 | + |
| 33 | +## Implementation Notes |
| 34 | + |
| 35 | +- Changed the live-wire download loop condition from "until all started |
| 36 | + transfers complete" to "until one started transfer completes." |
| 37 | +- Added unit coverage for two started transfers where one completes and the |
| 38 | + other remains incomplete. |
| 39 | + |
| 40 | +## Evidence |
| 41 | + |
| 42 | +- Live behavior exposing the issue: |
| 43 | + `EMULEBB_WORKSPACE_OUTPUT_ROOT\live-wire\rust-hideme-20260619T021252Z`. |
| 44 | +- `python -m pytest tests/python/test_rust_live_wire_hideme.py -q` |
0 commit comments