Skip to content

Signal v2 interest before waiting for peer unchoke - #202

Closed
linroid wants to merge 1 commit into
torrent-v2-08-rarityfrom
torrent-v2-08-interest
Closed

linroid wants to merge 1 commit into
torrent-v2-08-rarityfrom
torrent-v2-08-interest

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

V2 scheduling now signals interest based on selected, unverified pieces advertised by a peer, independently of choke state and assembly admission. This lets startup send interested while waiting for unchoke, before attempting payload requests. The actor can refresh interest after availability/verification changes and clear it once no wanted advertised pieces remain.

Interest writes use frame admission, suppress duplicates and update the local flag only after a successful write. Queue pressure leaves the flag unchanged for retry; pending response deadlines and a separate write deadline bound backpressure. Failed writes close the pipeline and release scheduler assignments.

Stacked on #201, under #162. Full actor event routing, upload/hash serving and remaining production capabilities/resource/release gates remain required.

Validation at cdcbe7a3694db759ee10fd391a1ad67b8fc563f7:

  • 471 JVM tests and 450 actually executed iOS simulator tests; zero failures, errors or skips.
  • Both pinned v1 conformance scenarios and the native-runtime dependency guard pass.
  • Tests verify advertised-piece/interested/unchoke/request ordering, selected-file completion, frame-pressure retry, duplicate suppression and blocked/non-suspending late writes.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T19:01:59.613014Z cdcbe7a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results

  677 files  ± 0    677 suites  ±0   4m 5s ⏱️ -6s
2 792 tests + 9  2 792 ✅ + 9  0 💤 ±0  0 ❌ ±0 
3 732 runs  +15  3 732 ✅ +15  0 💤 ±0  0 ❌ ±0 

Results for commit cdcbe7a. ± Comparison against base commit 28152e9.

@linroid

linroid commented Sep 20, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #236 (V2 scheduling and download execution) in the consolidated eight-PR stack for #162.

The replacement preserves this PR's code and subsequent fixes; its description links the original head and review discussions. The only additional consolidation fix is the CI-discovered listener cancellation regression, documented on the replacement. All eight replacements have passed their required CI checks.

Closing without merging. This branch and its discussions remain available for reference. Review index: #162 (comment)

@linroid linroid closed this Sep 20, 2026
@linroid
linroid deleted the torrent-v2-08-interest branch September 20, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant