Skip to content

Commit 97c6eb1

Browse files
author
Threepwood-7
committed
RUST-BUG-081: document live-wire early completion
1 parent 743552e commit 97c6eb1

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

docs/active/INDEX.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ items.
9292
| [RUST-BUG-078](items/RUST-BUG-078.md) | Major | DONE | Do not immediately downgrade failed obfuscated ED2K peers |
9393
| [RUST-BUG-079](items/RUST-BUG-079.md) | Minor | DONE | Do not report unknown ED2K TCP transport as plaintext |
9494
| [RUST-BUG-080](items/RUST-BUG-080.md) | Minor | DONE | Count embedded SX2 requests in Rust live-wire evidence |
95+
| [RUST-BUG-081](items/RUST-BUG-081.md) | Minor | DONE | Stop Rust live-wire downloads after first completion |
9596

9697
## Refactors (`REF`)
9798

docs/active/items/RUST-BUG-081.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

Comments
 (0)