Registered Member
|
Hi,
I've been making a few test and I've found, that if I create a trackerless torrent with KTorrent, then I can't open it with the mainline bt client - error pops out sayng that it's "not a valid bencoded string", so I've wrote a little Python script using modified by me (added printing debug info) bencoding decoder shipped with mainline and this is result (those strings before exception is my dbg info):
we see that string 'nodes' is bigger than 'comments' (btw, in quoted below spec there is no "comments" defined, only "comment" - is this ok?), but:
and I think that this is the cause of the error. I'm using BT 5.0.3 and KTorrent SVN614340. Sample torrent. Best regards, |
Moderator
|
|
Registered Member
|
|
Registered Member
|
The requirement for the sort is there primarily for calculating a proper infohash for the torrent consistently. Enough information that is used in the bittorrent protocol is sort-sensitive enough that requiring the sort be a specific order does make sense.
You don't want two otherwise identical torrents with the "pieces" and "piece length" values swapped within the info dictionary, because that would generate two separated swarms. There was a discussion about a bug in the sorting algorithms in VB.Net and C# in relation to bencoding on the ibiblio bittorrent mailing list. (Starting message in the discussion thread) |
Registered Member
|
|
Moderator
|
I guess that's a valid reason, but they could have just done it only for the info part of the bittorrent files, |
Registered Member
|
|
Moderator
|
|
Registered Member
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]