Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[CLOSED] Only the first part (32kb) is being downloaded from a file #129
Comments
This comment has been minimized.
This comment has been minimized.
|
Hmm, you're right. Something fishy is going on. I modified the example to only print out the first file: var BitTorrentClient = require('./')
var client = BitTorrentClient()
client.add('magnet:?xt=urn:btih:1e69917fbaa2c767bca463a96b5572785c6d8a12')
client.on('torrent', function (torrent) {
torrent.files[0].createReadStream().pipe(process.stdout)
})and ran it with |
This comment has been minimized.
This comment has been minimized.
|
Got another report of this:
It seems it's downloading the 66 pieces according to this log, unfortunately the output file is only 32 Kb long. I don't see anything wrong here. Maybe there is a way to increase the debug level for the log? |
This comment has been minimized.
This comment has been minimized.
|
Finally figured out what was causing this bug. Sorry it took so long. It works now! |
This comment has been minimized.
This comment has been minimized.
|
Published new version as 0.7.0. |
This comment has been minimized.
This comment has been minimized.
|
Oh yes! I have tried it and it is finally working! Thanks :) 2014-08-17 13:46 GMT+02:00 Feross Aboukhadijeh notifications@github.com:
Zeus Gómez Marmolejo |
Monday Jul 07, 2014 at 19:47 GMT
Originally opened as https://github.com/feross/bittorrent-client/issues/33
If I copy the example from the usage README.md and pipe the result to stdout, I see only the first 32kb of each file being printed. I'm noting that whole files are being downloaded, but only the first part is stored.