Skip to content

Verify full v2 and hybrid sessions over loopback TCP - #207

Closed
linroid wants to merge 1 commit into
torrent-v2-08-session-loopfrom
torrent-v2-08-session-tcp
Closed

linroid wants to merge 1 commit into
torrent-v2-08-session-loopfrom
torrent-v2-08-session-tcp

Conversation

@linroid

@linroid linroid commented Sep 12, 2026

Copy link
Copy Markdown
Owner

The automatic session loop now has end-to-end validation through actual platform TCP sockets, handshake negotiation, peer actors/pool, scheduling, and real verified storage.

Three common tests cover pure-v2 negotiation, a hybrid v1 handshake upgrading to v2, and rejection of v2-valid payload whose hybrid v1 hash is wrong. The seeder verifies interest and requests, replies with blocks out of order, and disconnects before storage completion. Successful downloads preserve selected-file output and omit the unselected file; rejected hybrid payload publishes no progress or payload bytes. Joined cleanup releases buffer and state credit.

Stacked on #206, including its unavailable-partial-piece eviction review fix; part of #162. Both TCP endpoints use Ketch, so these tests do not establish independent-client interoperability, throughput, or physical-device lifecycle gates.

Validation at 50fc348c89a4b9bbaf988858bf2107754e15b2c6: 494 JVM and 473 executed iOS simulator tests, zero failures/errors/skips; both pinned v1 conformance scenarios and native dependency guard passed. The real TCP tests ran on both JVM and iOS.

@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:59:53.547754Z 50fc348 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

  697 files  + 5    697 suites  +5   4m 21s ⏱️ +20s
2 861 tests + 9  2 861 ✅ + 9  0 💤 ±0  0 ❌ ±0 
3 847 runs  +15  3 847 ✅ +15  0 💤 ±0  0 ❌ ±0 

Results for commit 50fc348. ± Comparison against base commit 979922d.

@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-session-tcp 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