Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't "remove any old .torrent and .resume files" until we're sure th…
…at we have "success". This way magnets with "metadata error; trying again" actually do try again and also these magnets will now be available after daemon restart. Previously, whenever "trying again" tr_bencLoadFile() might fail indefinitely and therefore try again downloading forever because of never allowing for tr_metainfoParse() to even be tried. This bug was introduced at https://trac.transmissionbt.com/changeset/10842 when `assert( success )` was replaced by `if( success` .
- Loading branch information
465505f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see important related commit: fa96ec0
465505f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exceeding maxMagnetBadPiece prevents trying again and again downloading magnet metadata forever.
Doesn't make sense to me: Since the official transmission inception of Magnet, BEP # 9 support ( https://trac.transmissionbt.com/browser/trunk/libtransmission/torrent-magnet.c?rev=9550#L186 ) through current official transmission trunk that, after fully acquiring a magnet torrent's info dictionary metadata AND successfully matching info.hash tr_sha1() checksum test why the * drat. * section ( "metadata error; trying again" ) would ever need to be again processed. Trying again only makes sense to me if the checksum fails, not for a failed parse of valid SHA-1 metadata. At any rate, exceeding maxMagnetBadPiece prevents trying again and again downloading magnet metadata forever.
465505f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed that here:
a5561b7