mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.95k stars 226 forks source link

dowloading do not start #13

Open smolleyes opened 10 years ago

smolleyes commented 10 years ago

hi

many torrents do not start downloading, same torrent in my usual client works (deluge or transmission)

i m connected thru router but with dmz enabled, no vpn or things like that... an idear ?

thanks

fengkuizhi commented 10 years ago

var torrentStream = require('torrent-stream'); var path = require('path'); var fs = require('fs'); var torrent = fs.readFileSync('ubuntu-13.04-desktop-amd64.iso.torrent'); var engine = torrentStream(torrent, { connections: 100, path: '/home/kuizhi/my-file3', verify: false, dht: true });

engine.on('ready', function() { engine.files.forEach(function(file) { console.log(file.name); file.select(); }); })

engine.on('download', function(index) { console.log(index); });

engine.on('upload', function(index, offset, length) { console.log(index); });

engine.on('error',function(err,info){ console.log(err,info); })

this is my code and it didn't work too.But,the download path I set have a file '0000000000'

djkill commented 10 years ago

Same issue for me, did you solve this?

fengkuizhi commented 10 years ago

Because peer can't find others online peer. 1) dht can't find peer 2) Tracker has encode progrom . Tracker server receive torrent info from your peer is different from other peers, so tracker think it's a new torrent file .

Make a torrent file that point to your own tracker server,and change to right encode you need with res.serEncoding().

Misterhex commented 10 years ago

Same issue for me when running dht