[bittorrent] Protocol Deviation in Mainline

Olaf van der Spek olafvdspek at gmail.com
Thu Mar 2 15:02:56 EST 2006


On 3/2/06, Bram Cohen <bram at bitconjurer.org> wrote:
> Elliott Mitchell wrote:
>
> >The official specification continues to state:
> >
> >       "'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."
> >
> >Sometime between 3.4 and 3.9 the mainline changed so that it would
> >request 2^14 (16KB) and drop peers which requested more.
> >
> >
> Umm, 'oops'. It's been 2^14 for quite a while (like, years) but I didn't

What has been 2^14 for years?
The default request size or the limit?

> update the spec. I believe that all major clients currently use 2^14,
> mostly to avoid granularity issues.
>
> I'll make sure the spec gets updated.
>
> -Bram
> _______________________________________________
> BitTorrent mailing list
> BitTorrent at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/bittorrent
>


More information about the BitTorrent mailing list