From 1a352a199d13cc6120028c642037118d94a7d044 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 21 Jan 2026 20:58:50 +0000 Subject: [PATCH] feat: improve webtorrent reliability and update tracker lists - Increased tracker timeout to 6000ms and concurrency to 6 in `js/trackerConfig.js` - Increased trackers per magnet check to 10 to ensure better peer discovery - Added new reliable public WebSocket trackers to `DEFAULT_WSS_TRACKERS` in `js/constants.js` - Verified configuration changes with `tests/verify_tracker_config.mjs` --- js/constants.js | 2 ++ js/trackerConfig.js | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/constants.js b/js/constants.js index 42edd083..abf8c3af 100644 --- a/js/constants.js +++ b/js/constants.js @@ -109,6 +109,8 @@ const DEFAULT_WSS_TRACKERS = Object.freeze([ "wss://tracker.files.fm:7073/announce", "wss://tracker.btorrent.xyz", "wss://tracker.novage.com.ua:443/announce", + "wss://tracker.webtorrent.dev", + "wss://open.video.lukewarlow.uk:443/announce", ]); const SANITIZED_DEFAULT_BLUR_THRESHOLD = coerceNonNegativeInteger( diff --git a/js/trackerConfig.js b/js/trackerConfig.js index 9e31870a..5e50f69a 100644 --- a/js/trackerConfig.js +++ b/js/trackerConfig.js @@ -1,9 +1,9 @@ import { WSS_TRACKERS as DEFAULT_WSS_TRACKERS } from "./constants.js"; -export const TRACKER_TIMEOUT_MS = 3000; -export const TRACKER_PER_MAGNET = 3; +export const TRACKER_TIMEOUT_MS = 6000; +export const TRACKER_PER_MAGNET = 10; export const HEALTH_TTL_MS = 2 * 60 * 1000; -export const CONCURRENCY = 3; +export const CONCURRENCY = 6; export const TRACKER_ERROR_COOLDOWN_MS = 60 * 1000; export function resolveTrackerList({ magnetTrackers } = {}) {