Skip to content

retrackers: wait for the session copy rtorrent 0.16 writes later - #3528

Merged
xirvik merged 1 commit into
Novik:masterfrom
xirvik:retrackers-wait-session-copy
Nov 8, 2026
Merged

xirvik merged 1 commit into
Novik:masterfrom
xirvik:retrackers-wait-session-copy

Conversation

@xirvik

@xirvik xirvik commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

rtorrent 0.16 queues d.save_full_session for its session thread, so the inserted_new event that starts update.php can come before the session copy is on disk. A torrent added by upload has no tied file to fall back on, and got no tracker at all; one with a tied file had the trackers added to that file instead of the session copy.

update.php now waits up to five seconds for the session copy before it looks for the torrent. On rtorrent 0.9.8 it is already there by then, so nothing waits there.

rtorrent 0.16 queues d.save_full_session for its session thread, so the
inserted_new event that starts update.php can come before the session
copy is on disk. A torrent added by upload has no tied file to fall
back on, and got no tracker at all; one with a tied file had the
trackers added to that file instead of the session copy.

update.php now waits up to five seconds for the session copy before it
looks for the torrent. On rtorrent 0.9.8 it is already there by then, so
nothing waits there.
@xirvik
xirvik merged commit 4242c2e into Novik:master Nov 8, 2026
12 checks passed
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