Ticket #40 (closed defect: fixed)

Opened 6 years ago

Last modified 6 months ago

After rtorrent is killed, and then restarted, (sometimes) it doesn't seem to note progress in download.

Reported by: Bernaard Owned by: rakshasa
Priority: normal Component: rtorrent
Version: Severity: minor
Keywords: Cc:

Description

After rtorrent is killed, and then restarted, (sometimes) it doesn't seem to note progress in downloads, it starts for example from 20 Mb although it had reached 300 Mb when killed.

(0.3.1/0.7.1)

Change History

Changed 6 years ago by rakshasa

This happens when rtorrent is killed without having a chance to call msync and update the session torrents. Thus it uses old resume data which doesn't get invalidated since the timestamp of the files haven't changed.

I'm ATM refactoring this code, so that msync will be called at regular intervals thus fixing this problem.

Changed 6 years ago by yoshi3@autograf.pl

  • severity changed from normal to minor

this happens all the time with 0.3.3 . when i close rtorrent normally (ctrl+q) and restart it files partially/fully downloaded get 1% completed status. so i have to rehash every single time i start rtorrent

Changed 6 years ago by yoshi3@autograf.pl

this happens all the time with 0.3.3 . when i close rtorrent normally (ctrl+q) and restart it files partially/fully downloaded get 1% completed status. so i have to rehash every single time i start rtorrent

Changed 6 years ago by rakshasa

  • status changed from new to closed
  • resolution set to fixed

There were two seperate bugs here. One was due to msync not being called regularly thus not updating the modification timestamp for the files. The other, which i belive is the one yoshi3 is experiencing, was only a statistics related bug that caused progress of individual files not to be properly updated when resuming.

Both are fixed in HEAD.

Changed 6 months ago by Randi

God help me, I put aside a whole afternoon to fgiure this out.

Note: See TracTickets for help on using tickets.