split download of a piece into chunks of 16384 bytes
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 24 Jul 2015 12:46:27 +0000 (18:16 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Fri, 24 Jul 2015 12:46:27 +0000 (18:16 +0530)
commit045dd2b47a76006bfa610cc26f5aceb63877ba02
tree57b068541152702879adc9ef16954be9c2d65570
parent3bf44f2412b00eb6d4d61467d2fa4171ef330d7c
split download of a piece into chunks of 16384 bytes

The pieceLenth can often be quite big, so we need to split the piece
into smaller blocks of size 16384 bytes. Why 16384? Just an arbit
number. It seem to work okay.
src/FuncTorrent/Peer.hs
src/FuncTorrent/Utils.hs