anacrolix / torrent

Full-featured BitTorrent client package and utilities
Mozilla Public License 2.0
5.39k stars 615 forks source link

Problem getting magnet metadata on large files #888

Open sbs1990 opened 6 months ago

sbs1990 commented 6 months ago

I use the utility https://github.com/fbdtemme/torrenttools under Ubuntu Linux to create torrent files.

Example launch for creating a torrent:

$ ls -l t/
total 16188932
-rw-rw-r-- 1 sbs sbs 16577458723 jan  9 11:22 Taxi.Driver.1976.1080p.BluRay.DTS.x264-EbP.mkv

/opt/torrentools/torrenttools create "t" --include ".*t/Taxi.Driver.1976.1080p.BluRay.DTS.x264-EbP.mkv" --piece-size 16M --announce "http://192.168.1.100:2710/announce" --output taxi-diver.torrent

For seeding I use rtorrent v0.9.8-r16 https://github.com/jesec/rtorrent

Problem: For files of about 15GB or more size, projects using the anacrolix/torrent library cannot receive magnet metadata when adding content via magnet URL. I tested with https://github.com/YouROK/TorrServer and https://github.com/anacrolix/confluence

If i run the torrent file, there is no problem.

Another client, qBittorrent, receives metadata without any problems.

Traffic dump examples: anacrolix - https://drive.google.com/file/d/1cYpwLi7oVZbwbjTEdX0qGUFa3BJufIfb/view?usp=sharing qBittorrent - https://drive.google.com/file/d/1pL02zladqigEyOfGVJGApNAAQZGM3Cab/view?usp=sharing

anacrolix commented 6 months ago

A quick guess this is likely the check that the torrent info is not too large. I think anacrolix/torrent rejects infos larger than 10MB or so but it should be configurable.

Can you provide the magnet links?

sbs1990 commented 6 months ago

Magnet link - magnet:?xt=urn:btih:a5462fdae73e6feae7a88febc28279159073240f&dn=t&tr=http%3A%2F%2F109.126.53.58%3A6969%2Fannounce

anacrolix commented 5 months ago

https://github.com/anacrolix/torrent/blob/c202126a62ff9c321fcb9f7bb037bb5f1b52e216/global.go#L14-L19

I had no luck finding any peers for the provided magnet link. Perhaps you could share the metainfo, or a more popular torrent instead?

sbs1990 commented 5 months ago

I can share torrent file - http://109.126.53.58/taxi-16.torrent

anacrolix commented 5 months ago

Sorry, a public torrent is required. There's no point testing against a torrent with no other peers.

sbs1990 commented 5 months ago

I apologize, perhaps I initially asked the question incorrectly.

In my case, I'm creating a torrent on my local network. I am the first seeder.

The first client that start seeding the torrent is rtorrent. And TorrServer cannot get metadata from it (rtorrent), if file size is about 15GB. There are no problems with small files.

There are also NO problems with large PUBLIC torrents.