Debian Bittorrent tracker

Here you can discuss every aspect of Debian. Note: not for support requests!

Debian Bittorrent tracker

Postby ihatetoregister » 2019-04-09 18:09

I'm writing a bittorrent client and was using the debian.iso torrent as an example file to download. I think I have found a possible bug in the implementation of the bittorrent tracker that is located at so I was wondering if anyone have information of what BT tracker software that is running on this server? Could also be that my interpretation of the spec is wrong but I'm curios to know anyway :)

If anyone is interested, the problem I'm facing is in the announce response from the tracker:

Code: Select all
curl ""

This yields the following response (bencode) (Part of response with ip adresses replaced with <ip-addr>, run curl command for full response)

Code: Select all
d8:intervali900e5:peers2:ip<ip-addr>4:porti6881e2:ip<ip-addr>4:porti6881e2:ip<ip-addr>4:porti6881e2:ip<ip-addr>4:porti6881e ... ee

The problem is that the peers is supposed to be a list of dictionaries, but instead is just a stings of keys and values with out the 'l' and 'd' prefixes causing my bencode parser to go bananas :P example:
Code: Select all
Actual response: 5:peers2:ip<ip-addr>4:porti6881e2:ip<ip-addr>4:porti6881e

Code: Select all
Expected response: 5:peersld2:ip<ip-addr>4:porti6881ed2:ip<ip-addr>4:porti6881ee

Bittorrent specification

Torrent file ... rch/bt-cd/
Posts: 1
Joined: 2019-04-09 17:49

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 7 guests