Jump to content

Got Cancel Unrequested


Recommended Posts

After enabling "log errors" in the Logger tab, I see this message showing up. I realize it's not a real/bad error, but I'm wondering what it and all suffixed info means.

[HH:nn:ss] peer.ip :[peer.client]: Got Cancel Unrequested: xxx:yyyyyy->zzzzz

So what does it mean and what do X, Y and Z indicate? Is this a peer canceling a (duplicate) request? No much of a clue regarding Y, Y and Z though.

Link to comment
Share on other sites

So if we have X = piece number and Z = requested block length... that still leaves Y, since it obviously can't be the starting byte, because a) piece number and starting byte would be linearly correlated (not?) and B) the numbers just don't add up (compare 17:09:16a with 17:09:18; both are 0).

Plus the explanation of what the message as a whole means is still lacking. ;)

Link to comment
Share on other sites

So what does it mean [...] Is this a peer canceling a (duplicate) request?

It means that uTorrent got a CANCEL message that it cannot act on because it is not holding a REQUEST like that.

uTorrent UNCHOKES peers (allows them to make and receive requests) for a limited time, but the peers do not know what that time interval will be. When the time is up, uTorrent sends a CHOKE message.

When the CHOKE message is received, the peer will often send a CANCEL message for any REQUESTS that have not yet been filled.

Sometimes, uTorrent will send the CHOKE message at the same time that the peer sends a REQUEST message. And this is when things get interesting.

When uTorrent receives that REQUEST, it is ignored because uTorrent considers the peer as choked and is not allowed to make requests.

When the peer receives the CHOKE message, it sends a CANCEL message for outstanding requests (including the last one that crossed on the wire).

It is on those late messages that you see "Got Cancel Unrequested: xxx:yyyyyy->zzzzz." Since uTorrent did not process the REQUEST, it has no request in memory that corresponds with the peer's CANCEL message.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...