Skip to content

Bump libtorrent to 2.1 and add WebTorrent sample (groundwork for #18) - #21

Merged
jpcottin merged 3 commits into
masterfrom
libtorrent-2.1
Aug 3, 2026
Merged

Bump libtorrent to 2.1 and add WebTorrent sample (groundwork for #18)#21
jpcottin merged 3 commits into
masterfrom
libtorrent-2.1

Conversation

@jpcottin

@jpcottin jpcottin commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Stage 1 of WebTorrent support (#18).

Changes

  • libtorrent submodule: RC_2_0 (2.0.13) → RC_2_1 (87264011d = v2.1.0 + 122 upstream fixes, from the jpcottin/libtorrent fork, synced with upstream). 2.1 ships the WebRTC/WebSocket-tracker code needed for WebTorrent.
  • webtorrent=OFF in app CMake for now — enabling it needs libdatachannel sub-submodules + a TLS stack for wss:// trackers on Android (stage 2, separate PR).
  • New "Sintel as WebTorrent" sample row with modern wss:// trackers (tracker.webtorrent.dev, openwebtorrent.com, btorrent.xyz) + webtorrent.io web seed. Inert trackers until stage 2; still downloads via DHT today.
  • README version refs updated. RC_2_1 adds deps/libdatachannel and deps/asio-gnutls submodules (only built when webtorrent=ON; CI's recursive checkout handles them).

Verification

  • Native build across ABIs: no JNI changes needed against 2.1
  • JVM unit tests: 29/29 green
  • Emulator (Pixel 10 Pro Fold, API 37): full download→seeding cycle (Big Buck Bunny, 6 MB/s, 57 peers); new sample row renders and downloads (Sintel, 6.5 MB/s, 29 peers)
  • Fork's Android workflow green on the exact RC_2_1 commit

Switch libs/libtorrent from RC_2_0 (2.0.13) to RC_2_1 (v2.1.0 + 122
bugfix commits). Groundwork for WebTorrent support (#18): 2.1 ships the
WebRTC/WebSocket-tracker code, kept disabled for now (webtorrent=OFF)
until the libdatachannel + TLS toolchain work lands.

No JNI changes needed; RC_2_1 adds deps/libdatachannel and
deps/asio-gnutls submodules (only built when webtorrent=ON).
New Sample Torrents row pointing at the same Sintel torrent through the
modern WebTorrent trackers (tracker.webtorrent.dev, openwebtorrent.com,
btorrent.xyz) plus the webtorrent.io web seed. Groundwork for #18: once
the engine is built with webtorrent=ON this row demonstrates sharing
with browser peers; until then it still downloads via DHT.
Browser-peer sharing isn't live until the engine builds with
webtorrent=ON; don't claim it in the UI yet.
@jpcottin
jpcottin merged commit 75234eb into master Aug 3, 2026
6 checks passed
@jpcottin jpcottin mentioned this pull request Aug 3, 2026
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