kgilden
kgilden

Reputation: 10356

BitTorrent protocol does not seem to match with reality

I'm having some problems implementing a tracker - I'm using PHPTracker as the underlying library, but this is of little importance right now.

As written in the BitTorrent spec, a client should send a info_hash GET parameter among some others. Instead, I'm receiving the following parameters:

{
    "peer_id":"-AZ4702-WyiDalpWGJno",
    "supportcrypto":"1",
    "port":"19952",
    "azudp":"19952",
    "uploaded":"0",
    "downloaded":"0",
    "left":"22",
    "corrupt":"0",
    "event":"started",
    "numwant":"75",
    "no_peer_id":"1",
    "compact":"1",
    "key":"fdn0htAH",
    "azver":"3"
}

The same parameters came from both Vuze as well as uTorrent. I'm quite confused here, since some parameters are in the spec and others are not. What's going on here?

Upvotes: 4

Views: 335

Answers (1)

Matt Joiner
Matt Joiner

Reputation: 118680

This query is meaningless, the info_hash key is essential. Per @Arvid's suggestion, your library is not correctly parsing the request, or parsing it some way that doesn't meet your requirements.

Upvotes: 1

Related Questions