Closed GoogleCodeExporter closed 9 years ago
thanks for the report. I'll have to look into this.
Original comment by arvid.no...@gmail.com
on 6 Aug 2014 at 5:42
Thanks. After some recommendations on #libtorrent, I'm trying to get some logs
from a build of libtorrent with --enable-logging=verbose, and possibly some
wireshark traces.
Original comment by BluePhoe...@gmail.com
on 6 Aug 2014 at 6:13
I compiled 0.16.15 with debugging and verbose logging, and ran a seperate
deluge instance (with fewer torrents) until I got a bunch of spurious
completed. The libtorrent logs, and the deluge log, are here:
https://dl.dropboxusercontent.com/u/61793619/logs.tar.gz
Original comment by BluePhoe...@gmail.com
on 6 Aug 2014 at 7:35
this is what I think is causing this:
each tracker has a flag specifying whether or not we've sent "completed" to it
or not. If we haven't and the torrent is complete, we'll send it. If we get a
response from a "completed" announce, and the torrent is seeding, we set this
flag.
However, this flag is not persisted in the resume data, nor reset when adding a
torrent. This, presumably, has the effect that every time the client is
restarted, these flags will be cleared, and another completed announce is sent.
Original comment by arvid.no...@gmail.com
on 7 Aug 2014 at 4:36
hm. except, I just found the place where this logic belongs in
torrent::files_checked(), and it's already there...
Original comment by arvid.no...@gmail.com
on 7 Aug 2014 at 4:43
Could you please test this patch? This is on the theory that deluge likes to
use replace_trackers() (possibly for no reason).
http://dpaste.com/1SKSNS3
I've checked this into all active branches.
Original comment by arvid.no...@gmail.com
on 7 Aug 2014 at 5:00
I just installed a new version with that patch. Last time it only took about 30
minutes for the spurious completed's, but I've been running for 1.5 hours and
haven't seen any yet.
Original comment by BluePhoe...@gmail.com
on 7 Aug 2014 at 3:47
We do use replace_trackers whenever settings trackers, and this does occur
after loading the state as we store trackers ourselves. Not sure if that is
classed as 'for no reason' ;)
Thanks BluePhoenix for following up on this.
Original comment by caluml...@gmail.com
on 7 Aug 2014 at 7:16
Happy to help. I'm going to install this patch on my normal system and keep an
eye out for spurious completed's, but my test instance seems to be fixed.
Original comment by BluePhoe...@gmail.com
on 7 Aug 2014 at 7:22
thanks!
Original comment by arvid.no...@gmail.com
on 7 Aug 2014 at 8:07
Original issue reported on code.google.com by
BluePhoe...@gmail.com
on 5 Aug 2014 at 8:00