qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.83k stars 3.87k forks source link

Webseed leaks and causes 100s of GB of traffic #581

Closed MPW1412 closed 11 years ago

MPW1412 commented 11 years ago

Hello,

I noticed that there is a webseed download leak in V 3.1.0alpha. It happens quite often (around 1/20), that when I download a file via http-webseed, that qbittorrent has some hashing problems. It redownloads the same part again and again and causes lots of dropped traffic. In my case up to 50 or 60 GB sometimes until I noticed it and stoped it manually.

There should be two things fixed:

1.) If more than 100 or 200 MB of traffic for one torrent was droppend, eliminate the webseed. Just as it would happen with a torrent peer that uploads useless parts aswell.

2.) All the webseeds, that caused these problems, could be loaded perfectly via wget or any browser. After the download was completed, I could easyly import them with the torrent file to qbittorrent in order to seed them. So the torrent file was not corrupted either and there must be an issue around the validating of downloaded data via webseed.

Until 3.0 qbittorent did not have this leak!

Bye MPW

sledgehammer999 commented 11 years ago

Does this behavior happen with the same torrent/webseed or does the same torrent/webseed sometimes work and sometimes not?

If it is the first can you link to such a problematic torrent/webseed?

MPW1412 commented 11 years ago

No, because deleting the torrent and the file from the harddisk always fixes the problem.

I guess the problem is, that qbittorrent does not drop the problematic part and recharges it - somehow. Because just deleting the torrent, but leaving the partial file on disk, does not fix it.

sledgehammer999 commented 11 years ago

Most probably this is a libtorrent problem. As far as I know qbt doesn't do anything fancy with the webseeds. This is handle by libtorrent. Do you have any webseeded torrents for reference? I cannot find anything searching with google...

MPW1412 commented 11 years ago

I create them by myself. Guess I need to explain this: I use the onlinetvrecorder.com. You get your recordings as files and can download them via http oder torrent. But not all series have seeders, so I manually add the webseed-link to a torrent to become the initial seeder.

I created a litte example. Don't worry, as the onlinetvrecorder encrypts the files, it's absolutly legal. It's an episode of "Little House on the Prairie". I downloaded the torrent and inserted the http-webseed. But as it comes from a mirror, it will only be available for a few hours.Name: Unsere_kleine_Farm_13.04.14_04-45_kabel1_50_TVOON_DE.mpg.avi.otrkey File: Unsere_kleine_Farm_13.04.14_04-45_kabel1_50_TVOON_DE.mpg.avi.otrkey.torrent

GENERAL

Name: Unsere_kleine_Farm_13.04.14_04-45_kabel1_50_TVOON_DE.mpg.avi.otrkey Hash: 4e9ea4b762f9e4cd7b352a46b2bb9a68ac8122dd Created by: libtorrent Created on: Sun Apr 14 07:30:40 2013 Piece Count: 503 Piece Size: 1.00 MiB Total Size: 527.3 MB Privacy: Public torrent

TRACKERS

Tier #1 http://81.95.11.2:8080/announce

Tier #2 http://otr.dwolp.de/pt/announce

WEBSEEDS

http://s33.otr-download.de:80/dl-high-otr/170320f853626908c73afff3cdc72c63/516a808b/Unsere_kleine_Farm_13.04.14_04-45_kabel1_50_TVOON_DE.mpg.avi.otrkey

FILES

Unsere_kleine_Farm_13.04.14_04-45_kabel1_50_TVOON_DE.mpg.avi.otrkey (527.3 MB)

Link to the torrent-file: http://wwu.dyndns.info/privat/Unsere_kleine_Farm_13.04.14_04-45_kabel1_50_TVOON_DE.mpg.avi.otrkey.torrent

Try it out - but as I said: Most time it will work.

cdumez commented 11 years ago

This issue would be better addressed at http://code.google.com/p/libtorrent/issues/entry as qBittorrent is just an GUI and does not handle BitTorrent networking.

MPW1412 commented 11 years ago

So why is this bug only in V3.1.0alpha then? The libtorrent-rastabar6 wasn't updated by the repo, I think?

cdumez commented 11 years ago

Your libtorrent version must have changed? In any case, qBittorrent does not handle communication with Web seeds so I cannot see how it would be responsible for such behavior.

MPW1412 commented 11 years ago

It's not in the repo, so why should it have changed?

Anyway, I reported it here: http://code.google.com/p/libtorrent/issues/detail?id=463

sledgehammer999 commented 11 years ago

@MPW1412 what version of libtorrent are you using? (help->about->libraries) And also from where did you get that build?

MPW1412 commented 11 years ago

I have these ones installed, guess it's the first one:

dpkg -l |grep -i libtorrent ii libtorrent-rasterbar6 0.15.10-1 C++ bittorrent library by Rasterbar Software rc libtorrent13 0.12.7-6 C++ BitTorrent library by Rakshasa ii libtorrent14 0.12.9-3 C++ BitTorrent library by Rakshasa rc qbittorrent 3.1.x-0~4278-20130407~precise1 bittorrent client based on libtorrent-rasterbar with a Qt4 GUI ii qbittorrent-nox 3.1.x-0~4278-20130407~precise1 bittorrent client based on libtorrent-rasterbar (without X support) ii rtorrent 0.8.9-2 ncurses BitTorrent client based on LibTorrent from rakshasa

I think it's from ubuntu's repo.

sledgehammer999 commented 11 years ago

Just so you know, latest stable libtorrent-rasterbar version is 0.16.9 and not 0.15.10...

MPW1412 commented 11 years ago

Is there a repo for it somewhere?

For Ubuntu 12.04 I can just find repos with 15.x.

Belove0 commented 11 years ago

I don't run Ubuntu, but take a look here: http://packages.ubuntu.com/raring/libtorrent-rasterbar7 for just the library, or http://packages.ubuntu.com/source/raring/libtorrent-rasterbar for docs, python bindings, etc., too. Above links are at version 0.16.7 as of today. Distros are usually a little behind. You can download the sources and build it yourself to get the latest when needed. http://www.rasterbar.com/products/libtorrent/building.html

UrbanPotato commented 11 years ago

lib torrent bug update your copy of libttorrent to the latest svn ./close