Jump to content

Maximum request length


R1CH

Recommended Posts

http://www.bittorrent.com/protocol.html

'request' messages contain an index, begin, and length. The last two are byte offsets. Length is generally a power of two unless it gets truncated by the end of the file. All current implementations use 2 15 , and close connections which request an amount greater than 2 17 .

I was trying to figure out why uTorrent was randomly disconnecting a client. Turns out this client was sending request length of 32768 (2^15) and uTorrent seems to disconnect any client requesting over 2^14. Why is this?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...