feat(torrents): add tracker timing controls

This commit is contained in:
NimBold
2026-08-02 10:24:59 +03:30
parent 1d27b5b0bf
commit 48b4d984a2
19 changed files with 516 additions and 11 deletions
+7
View File
@@ -5802,6 +5802,13 @@ async fn validate_torrent_enqueue(
item.torrent_trackers = queue::normalize_torrent_trackers(item.torrent_trackers.as_deref())?;
item.torrent_exclude_trackers =
queue::normalize_torrent_exclude_trackers(item.torrent_exclude_trackers.as_deref())?;
item.torrent_tracker_connect_timeout = queue::normalize_torrent_tracker_connect_timeout(
item.torrent_tracker_connect_timeout,
)?;
item.torrent_tracker_timeout =
queue::normalize_torrent_tracker_request_timeout(item.torrent_tracker_timeout)?;
item.torrent_tracker_interval =
queue::normalize_torrent_tracker_interval(item.torrent_tracker_interval)?;
item.torrent_stop_timeout = queue::normalize_torrent_stop_timeout(item.torrent_stop_timeout)?;
item.torrent_prioritize_piece = queue::normalize_torrent_prioritize_piece(
item.torrent_prioritize_piece.as_deref(),