[bittorrent] Bug in BitTorrent 4.20.4.

Alan McGovern alan.mcgovern at gmail.com
Thu Aug 24 08:58:18 EDT 2006

I had created an "OrderedDictionary" class which preserved the order of the
elements in a .torrent file as i read them out, so i could correctly
calculate the infohash and regenerate the .torrent if i wanted, but now i
can dump that and use the internal "SortedDictionary<TKey, TValue> class in


On 8/24/06, Jari Sundell <sundell.software at gmail.com> wrote:
> On 8/24/06, Harold Feit <dwknight at depthstrike.com> wrote:
> > Rejecting a torrent that is not created in compliance with BEncoding
> > specifications is not a bug.
> >
> > BEncoded Dictionary elements must be sorted as per
> > http://wiki.theory.org/BitTorrentSpecification#bencoding or else they
> > are in violation of the protocol. As such, having dictionary entries of
> > 'created by' and 'creation date' in the wrong order is a malformed
> > BEncode Dictionary.
> And the reason for this is that you should be able to transform the
> bencode dictionary to a sorted dictionary in the client and back, and
> the output should be the same as the input.
> Rakshasa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/bittorrent/attachments/20060824/13844170/attachment.html 

More information about the BitTorrent mailing list